7#!/bin/sh # Set initial variables: CWD=`pwd` if [ "$TMP" = "" ]; then TMP=/tmp fi PKG=$TMP/package-bin VERSION=8.5.0 ARCH=i386 BUILD=1 if [ ! -d $TMP ]; then mkdir -p $TMP # location to build the source fi if [ ! -d $PKG ]; then mkdir -p $PKG # place for the package to be built echo "+=========+" echo "| bpe-1.4 |" echo "+=========+" cd $TMP tar xzvf $CWD/bpe-1.4.tar.gz cd bpe rm *.o ./mklinux make strip bpe cat bpe > $PKG/usr/bin/bpe cat bpe.1 | gzip -9c > $PKG/usr/man/man1/bpe.1.gz mkdir -p $PKG/usr/doc/bpe-1.4 cp -a readme readme.linux $PKG/usr/doc/bpe-1.4 chown root.root $PKG/usr/doc/bpe-1.4/* chmod 644 $PKG/usr/doc/bpe-1.4/*