#tool/distro specific functions for fetching, building and installing dependencies fetch_source () { if [ ! -e .fetched_source ]; then [ ! -d src ] && mkdir src wget $URL tar xJf $VERSION.tar.xz -C src/ rm $VERSION.tar.xz touch .fetched_source fi } install_dependencies() { # quick fix for missing libkmod repo... add-apt-repository --force-yes ppa:pitti/systemd apt-get update --force-yes apt-get install --force-yes $DEPS } build () { if [ ! -e .built ]; then cd src/$VERSION ./configure --disable-manpages make [ ! -d $TOOL_DIR/$TOOL/build ] && mkdir -p $TOOL_DIR/$TOOL/build DESTDIR=$TOOL_DIR/$TOOL/build make install cd - touch .built fi }