#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-speex VERSION=1.1.9 ARCH=alpha BUILD=3 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf speex-$VERSION tar xzf $CWD/speex-$VERSION.tar.gz cd speex-$VERSION ./configure \ --prefix=/usr \ $TARGET make || exit make install DESTDIR=$PKG ( cd $PKG find . | xargs file | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ) ( cd $PKG/usr/share ; mv * ../ ) ( cd $PKG/usr/man/man1 ; gzip -9 * ) cp -a AUTHORS COPYING ChangeLog TODO NEWS README $PKG/usr/doc/speex-$VERSION chmod 644 $PKG/usr/doc/speex-$VERSION/* mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/speex-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/speex.build.log