#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-bc INFO=$PKG/usr/info VERSION=1.06.95 ARCH=alpha BUILD=1 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf bc-$VERSION tar xjf $CWD/bc-$VERSION.tar.bz2 cd bc-$VERSION ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/man \ --with-readline \ --program-prefix= \ --program-suffix= \ --build=$TARGET make || exit 1 make install DESTDIR=$PKG mkdir -p $PKG/usr/doc/bc-$VERSION cp -a AUTHORS COPYING ChangeLog Examples INSTALL NEWS README Test $PKG/usr/doc/bc-$VERSION chown -R root.root $PKG/usr/doc/bc-$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 ) gzip -9 $PKG/usr/man/man?/*.? rm -rf $PKG/usr/info/dir gzip -9 $PKG/usr/info/* mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/bc-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/bc.build.log