#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-gnash VERSION=0.7.2 ARCH=alpha TARGET=$ARCH-alphaslack-linux BUILD=2 rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf gnash-$VERSION tar xjf $CWD/gnash-$VERSION.tar.bz2 cd gnash-$VERSION ./configure \ --prefix=/usr \ --program-prefix="" \ --program-suffix="" \ --enable-gui=sdl \ --with-boost-lib=/usr/lib \ --with-boost-incl=/usr/include/boost-1_33_1 \ --with-plugindir=/usr/lib/mozilla/plugins \ $TARGET make || exit make DESTDIR=$PKG install ( cd plugin ; make DESTDIR=$PKG install ) mkdir -p $PKG/usr/doc/gnash-$VERSION cp -a AUTHORS COPYING ChangeLog NEWS README TODO $PKG/usr/doc/gnash-$VERSION gzip -9 $PKG/usr/man/man?/*.? chown root.bin $PKG/usr/bin/* ( 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 ) mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/gnash-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/gnash.build.log