#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-svgalib-dummy VERSION=1.4.0-2.2 VER=1.4.0 ARCH=alpha BUILD=2 # Build svgalib-dummy for AlphaSlack. ( cd $TMP tar xzf $CWD/svgalib-dummy_$VERSION.tar.gz cd svgalib-dummy-$VER make || exit 1 make install PREFIX=$PKG mkdir -p $PKG/usr/doc/svgalib-dummy-$VERSION cd debian cp -a README* changelog control copyright $PKG/usr/doc/svgalib-dummy-$VERSION ( 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/svgalib-dummy-$VER-$ARCH-$BUILD.tgz ) 2>&1 | tee /tmp/svgalib-dummy.build.log