#!/bin/sh # Set initial variables: CWD=`pwd` TMP=/tmp PKG=$TMP/package-flex VERSION=2.5.35 ARCH=alpha BUILD=2 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf flex-$VERSION tar xjf $CWD/flex-$VERSION.tar.bz2 cd flex-$VERSION ./configure \ --prefix=/usr \ --mandir=/usr/man \ --infodir=/usr/info \ --build=$TARGET make || exit 1 make install DESTDIR=$PKG rm -rf $PKG/usr/info/dir mkdir -p $PKG/usr/doc/flex-$VERSION cp -a INSTALL NEWS README $PKG/usr/doc/flex-$VERSION gzip -9 $PKG/usr/info/*.inf* $PKG/usr/man/man1/*.? cat $CWD/lex > $PKG/usr/bin/lex chmod 755 $PKG/usr/bin/* mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/flex-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/flex.build.log