#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-speex VERSION=1.0.4 ARCH=alpha BUILD=1 TARGET=$ARCH-alphaslack-linux mkdir -p $PKG ( cd $TMP tar xzf $CWD/speex-$VERSION.tar.gz cd speex-$VERSION ./configure --prefix=/usr $TARGET make make install DESTDIR=$PKG ( cd $PKG find . | xargs file | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded ) ( 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/* cd $PKG makepkg -l y -c n $TMP/speex-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/speex.build.log