#!/bin/bash #DEP:device_mapper NAME=multipath_tools VER=0.4.6 CWD=`pwd` PKGTMP=/tmp/pkgtmp mkdir -p $PKGTMP &>/dev/null tar -xjf multipath-tools-$VER.tar.bz2 || exit 1 cd multipath-tools-$VER/devmap_name ||exit 1 #./configure --prefix=/usr || exit 1 make -j1 || exit 1 make -j1 DESTDIR=$PKGTMP install || exit 1 cd "$PKGTMP" || exit 1 makepkg -l y -c n $CWD/$NAME.pkg > /dev/null && echo $VER > $CWD/$NAME.version && arch > $CWD/$NAME.arch