#!/bin/sh # # SlackBuild for $NAME # ################################## ## Creator: Stefano Stabellini ## ## stefano@stabellini.net ## ## http://www.stabellini.net ## ################################## # # Modified for VectorLinux by exeterdad CWD=`pwd` if [ "$TMP" = "" ]; then TMP=/tmp fi if [ ! -d $TMP ]; then mkdir -p $TMP # location to build the source fi PKG=/tmp/package-$NAME VERSION=0.16.2 ARCH=i586 BUILD=2vl59 SHIM="# " # Add enough spaces between quotes to match quotes around name on next line NAME="requiredbuilder" VL_PACKAGER=exeterdad if [ "$ARCH" = "i386" ]; then SLKCFLAGS="-O2 -march=i386 -mcpu=i686" elif [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mcpu=i686" elif [ "$ARCH" = "s390" ]; then SLKCFLAGS="-O2" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2" fi rm -rf $PKG mkdir -p $PKG/usr/bin mkdir -p $PKG/usr/man/man1 mkdir -p $PKG/etc echo "+=====================+" echo "| $NAME-$VERSION |" echo "+=====================+" cd $TMP rm -rf $NAME-$VERSION tar xvzf $CWD/$NAME-$VERSION.tar.gz cd $NAME-$VERSION chown -R root.root . find . -perm 777 -exec chmod 755 {} \; find . -perm 775 -exec chmod 755 {} \; find . -perm 700 -exec chmod 755 {} \; find . -perm 744 -exec chmod 755 {} \; find . -perm 666 -exec chmod 644 {} \; find . -perm 664 -exec chmod 644 {} \; find . -perm 600 -exec chmod 644 {} \; ./install.sh $PKG chown -R root.root $PKG/usr/bin gzip -9 $PKG/usr/man/man1/* mkdir -p $PKG/usr/doc/$NAME-$VERSION cp AUTHORS $PKG/usr/doc/$NAME-$VERSION cp COPYING $PKG/usr/doc/$NAME-$VERSION cp README $PKG/usr/doc/$NAME-$VERSION cp INSTALL $PKG/usr/doc/$NAME-$VERSION cp ChangeLog $PKG/usr/doc/$NAME-$VERSION mkdir -p $PKG/install # cat $CWD/slack-desc > $PKG/install/slack-desc # cat $CWD/slack-suggests > $PKG/install/slack-suggests cat > $PKG/install/slack-desc << EOF # HOW TO EDIT THIS FILE: # The "handy ruler" below makes it easier to edit a package description. Line # up the first '|' above the ':' following the base package name, and the '|' # on the right side marks the last column you can put a character in. You must # make exactly 11 lines for the formatting to be correct. It's also # customary to leave one space after the ':'. $SHIM|-----handy-ruler------------------------------------------------------| $NAME: requiredbuilder (Dependency generator for packaging) $NAME: $NAME: RequiredBuilder is a simple tool to aid Slackware package $NAME: developers in finding dependencies. For example it can be used to $NAME: write Zenwalk style depfiles or slack-required files for slapt-get's $NAME: dependency checking. $NAME: $NAME: $NAME: License: GPL 3.0 $NAME: Author: Stefano Stabellini $NAME: Website: http://www.stabellini.net/requiredbuilder.html #---------------------------------------- BUILDDATE: `date` PACKAGER: $VL_PACKAGER HOST: `uname -srm` DISTRO: `cat /etc/vector-version` CFLAGS: $CFLAGS CONFIGURE: N/A EOF cp $PKG/install/slack-desc $CWD/slack-desc cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG # makepkg -l y -c n ../$NAME-$VERSION-$ARCH-$BUILD.tgz makepkg -l y -c n ../$NAME-$VERSION-$ARCH-$BUILD.tlz