#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-guile VERSION=1.8.7 ARCH=alpha BUILD=1 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG/usr ( cd $TMP rm -rf guile-$VERSION tar xzf $CWD/guile-$VERSION.tar.gz cd guile-$VERSION chown -R root.root . find . -perm 777 -exec chmod 755 {} \; find . -perm 444 -exec chmod 644 {} \; find . -perm 664 -exec chmod 644 {} \; ./configure \ --prefix=/usr \ --mandir=/usr/man \ --infodir=/usr/info \ --with-threads \ --build=$TARGET make || exit 1 make install DESTDIR=$PKG chown -R root.bin $PKG/usr/bin strip $PKG/usr/bin/* 2> /dev/null strip --strip-unneeded $PKG/usr/lib/lib*so 2> /dev/null rm -rf $PKG/usr/info/dir gzip -9 $PKG/usr/info/* mkdir -p $PKG/usr/doc/guile-$VERSION cp -a AUTHORS ChangeLog GUILE-VERSION HACKING NEWS README THANKS $PKG/usr/doc/guile-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/guile-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/guile.build.log