CWD=`pwd` VERSION=0.2.6 ARCH=${ARCH:-x86_64} BUILD=${BUILD:-1} PKG=/tmp/package-audiofile rm -rf $PKG cd /tmp tar xjvf $CWD/audiofile-$VERSION.tar.bz2 cd audiofile-$VERSION chown -R root.root . find . -perm 666 -exec chmod 644 {} \; find . -perm 664 -exec chmod 644 {} \; CFLAGS=-O2 \ ./configure \ --prefix=/usr \ --libdir=/usr/lib64 \ --sysconfdir=/etc \ $ARCH-slackware-linux make make install DESTDIR=$PKG mkdir -p $PKG/usr/doc/audiofile-$VERSION cp -a \ COPYING TODO README ChangeLog docs/* \ $PKG/usr/doc/audiofile-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n ../audiofile-$VERSION-$ARCH-$BUILD.tgz