#!/bin/bash NAME=bridge_utils VER=1.1 CWD=`pwd` PKGTMP=/tmp/pkgtmp mkdir -p $PKGTMP &>/dev/null tar -xzf bridge-utils-$VER.tar.gz || exit 1 cd bridge-utils-$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