#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-bison VERSION=2.4.2 ARCH=alpha BUILD=1 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf bison-$VERSION tar xjf $CWD/bison-$VERSION.tar.bz2 cd bison-$VERSION chown -R root.root . ./configure \ --prefix=/usr \ --mandir=/usr/man \ --infodir=/usr/info \ --build=$TARGET make || exit 1 make install DESTDIR=$PKG || exit 1 strip --strip-unneeded $PKG/usr/bin/bison chown -R root.bin $PKG/usr/bin gzip -9 $PKG/usr/man/man1/* $PKG/usr/info/*.info rm -rf $PKG/usr/info/dir mkdir -p $PKG/install cat $CWD/doinst.sh > $PKG/install/doinst.sh cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/bison-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/bison.build.log