#!/bin/sh # Set initial variables: CWD=`pwd` if [ "$TMP" = "" ]; then TMP=/tmp fi PKG=$TMP/package-beecrypt VERSION=3.1.0 ARCH=x86_64 BUILD=1 if [ ! -d $TMP ]; then mkdir -p $TMP # location to build the source fi rm -rf $PKG mkdir -p $PKG # place for the package to be built cd $TMP tar xjvf $CWD/beecrypt-$VERSION.tar.bz2 cd beecrypt-$VERSION CFLAGS="-O2 -fPIC" \ ./configure \ --prefix=/usr \ --libdir=/usr/lib64 \ --enable-shared=no \ --enable-static=yes \ --with-pic \ x86_64-slackware-linux make make install DESTDIR=$PKG strip -g $PKG/usr/lib64/*.a # Build the package: cd $PKG makepkg -l y -c n $TMP/beecrypt-$VERSION-$ARCH-$BUILD.tgz # Clean up the extra stuff: if [ "$1" = "--cleanup" ]; then rm -rf $TMP/beecrypt-$VERSION rm -rf $PKG fi