#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-mpg321 VERSION=0.2.10 ARCH=alpha BUILD=2 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf mpg321-$VERSION tar xzf $CWD/mpg321-$VERSION.tar.gz cd mpg321-$VERSION ./configure \ --prefix=/usr \ $TARGET make || exit strip mpg321 2> /dev/null mkdir -p $PKG/usr/bin cat mpg321 > $PKG/usr/bin/mpg321 chmod 755 $PKG/usr/bin/mpg321 chown -R root.bin $PKG/usr/bin mkdir -p $PKG/usr/man/man1 cat mpg321.1 | gzip -9c > $PKG/usr/man/man1/mpg321.1.gz mkdir -p $PKG/usr/doc/mpg321-$VERSION cp -a AUTHORS BUGS COPYING ChangeLog HACKING INSTALL NEWS README README.remote THANKS TODO $PKG/usr/doc/mpg321-$VERSION chown -R root.root $PKG/usr/doc/mpg321-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/mpg321-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/mpg321.build.log