#!/bin/sh VERSION=2.7 ARCH=arm BUILD=1 source /armedslack/source/armslack-utils/arm-baseenvs.sh source /armedslack/source/armslack-utils/arm-autoconf-envs.sh CWD="$( pwd )" PKG=$TMP/package-slocate rm -rf $PKG mkdir -p $PKG # Explode the package framework: cd $PKG explodepkg $CWD/_slocate.tar.gz cd $TMP rm -rf slocate-* tar xzvf $CWD/slocate-$VERSION.tar.gz cd slocate-$VERSION CFLAGS="$ARMCFLAGS" $ARMCONFIGURE --prefix=/usr make -i clean make -i arm-linux-strip slocate cat slocate > $PKG/usr/bin/slocate mkdir -p $PKG/usr/man/man1 zcat doc/slocate.1.linux.gz | gzip -9c > $PKG/usr/man/man1/slocate.1.gz zcat doc/updatedb.1.gz | gzip -9c > $PKG/usr/man/man1/updatedb.1.gz mkdir -p $PKG/usr/doc/slocate-$VERSION cp -a \ AUTHORS ChangeLog INSTALL LICENSE README \ $PKG/usr/doc/slocate-$VERSION chmod 644 $PKG/usr/doc/slocate-$VERSION/* chown -R root.root $PKG/usr/doc/slocate-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc # Build the package: cd $PKG makepkg -l y -c n $BUILDSTORE/a/slocate-$VERSION-$ARCH-$BUILD.tgz cd $BUILDSTORE/a slackdtxt -t slocate-$VERSION-$ARCH-$BUILD.tgz