#!/bin/sh FFCALLVER=20080704cvs ARCH=alpha BUILD=1 CWD=$(pwd) TMP=/tmp PKG=$TMP/package-ffcall rm -rf $PKG mkdir -p $TMP $PKG (cd $TMP rm -rf ffcall* tar xf $CWD/ffcall-$FFCALLVER.tar.* || exit 1 cd ffcall* || exit 1 chown -R root:root . find . \ \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; ./configure \ --prefix=/usr \ --mandir=/usr/man \ --build=$ARCH-alphaslack-linux || exit 1 make || exit 1 make install DESTDIR=$PKG || exit 1 # We need ffcall installed in order to build clisp: make install # Don't need this: rm -f $PKG/usr/lib/*.la # Move docs around: mkdir -pm755 $PKG/usr/doc/ffcall-$FFCALLVER install -vpm644 README NEWS COPYING $PKG/usr/doc/ffcall-$FFCALLVER mv -f $PKG/usr/share/html/* $PKG/usr/doc/ffcall-$FFCALLVER rmdir $PKG/usr/share/html/ rmdir $PKG/usr/share/ # Strip stuff: find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null #mv $PKG/usr/share/doc/clisp/* $PKG/usr/doc/clisp-$VERSION rm -rf $PKG/usr/share/doc gzip -9 $PKG/usr/man/man?/*.? mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc # Build the package: cd $PKG makepkg -l y -c n $TMP/ffcall-$FFCALLVER-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/ffcall.build.log