#!/bin/sh # # $Id: hplip.SlackBuild written for VectorLinux by John Babiak $PKG/install/slack-desc # # append build information to the end of the slack-desc file # cat >> $PKG/install/slack-desc << EOF #---------------------------------------- BUILDDATE: `date` PACKAGER: $VL_PACKAGER HOST: `uname -srm` DISTRO: `cat /etc/vector-version` CFLAGS: $CFLAGS CONFIGURE: `awk "/\.\/configure\ /" $TMP/$NAME-$VERSION/config.log` EOF 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 ) echo "Generating slapt-get dependencies..." requiredbuilder -v -y $PKG echo "Making package: $NAME-$VERSION..." makepkg -l y -c n $TMP/$NAME-$VERSION-$ARCH-$BUILD.tlz