#!/bin/bash NAME=libnfnetlink VER=1.0.1 CWD=`pwd` PKGTMP=/tmp/pkgtmp mkdir -p $PKGTMP &>/dev/null tar -xjf $NAME-$VER.tar.bz2 || 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