#!/bin/sh # Set initial variables: CWD=`pwd` TMP=/tmp PKG=$TMP/package-libtool VERSION=1.5.10 ARCH=alpha BUILD=1 TARGET=$ARCH-alphaslack-linux mkdir -p $PKG ( cd $TMP rm -rf libtool-$VERSION tar xjf $CWD/libtool-$VERSION.tar.bz2 cd libtool-$VERSION chown -R root.root . CC=gcc LTCC=gcc CFLAGS="-O2" ./configure --prefix=/usr $TARGET make make install DESTDIR=$PKG chown -R root.bin $PKG/usr/bin ( cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ) rm -f $PKG/usr/info/dir gzip -9 $PKG/usr/info/* mkdir -p $PKG/usr/doc/libtool-$VERSION cp -a AUTHORS COPYING INSTALL NEWS README THANKS TODO $PKG/usr/doc/libtool-$VERSION mkdir $PKG/install cp $CWD/doinst.sh $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG makepkg -l y -c n $TMP/libtool-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/libtool.build.log