#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-libtool VERSION=2.2.6 ARCH=alpha BUILD=3 TARGET=$ARCH-alphaslack-linux rm -rf $PKG mkdir -p $PKG ( cd $TMP rm -rf libtool-$VERSION tar xf $CWD/libtool-${VERSION}b.tar.gz cd libtool-${VERSION}b zcat $CWD/libtool.no.moved.warning.diff | patch -p1 --verbose || exit 1 chown -R root.root . ./configure \ --prefix=/usr \ --infodir=/usr/info \ --build=$TARGET make || exit 1 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 -rf $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