#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-xawtv VERSION=3.95 ARCH=alpha BUILD=1 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf xawtv-$VERSION tar xzf $CWD/xawtv-$VERSION.tar.gz cd xawtv-$VERSION ./configure \ --prefix=/usr \ $TARGET make || exit make install DESTDIR=$PKG gzip -9 $PKG/usr/man/man{1,5,8}/* gzip -9 $PKG/usr/man/es/man{1,5,8}/* gzip -9 $PKG/usr/man/fr/man1/* mkdir -p $PKG/install ( cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ) cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/xawtv-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/xawtv.build.log