#!/bin/bash #DEP:bzip2 #DEP:zlib #DEP:popt NAME=librsync VER=0.9.7 CWD=`pwd` PKGTMP=/tmp/pkgtmp mkdir -p $PKGTMP &>/dev/null tar -xzf $NAME-$VER.tar.gz || exit 1 cd $NAME-$VER ./configure --prefix=/usr || exit 1 make || exit 1 make 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