#!/bin/sh # Source the cross compile ARM environment variables source /armedslack/source/armslack-utils/arm-cross-envs.sh CWD=`pwd` PKG=$TMP/package-gzip VERSION=1.3.3 ARCH=arm BUILD=1 rm -rf $PKG mkdir -p $PKG cd $PKG explodepkg $CWD/_gzip.tar.gz cd $TMP rm -rf gzip-* tar xzvf $CWD/gzip-$VERSION.tar.gz cd gzip-$VERSION chown -R root.root . CFLAGS="$ARMCFLAGS" $ARMCONFIGURE --prefix=/usr make -e arm-linux-strip gzip cat gzip > $PKG/bin/gzip cat gzexe > $PKG/usr/bin/gzexe cat zdiff > $PKG/usr/bin/zdiff cat zforce > $PKG/usr/bin/zforce cat zgrep > $PKG/usr/bin/zgrep cat zless > $PKG/usr/bin/zless cat zmore > $PKG/usr/bin/zmore cat znew > $PKG/usr/bin/znew for page in gunzip.1 gzexe.1 gzip.1 zcat.1 zcmp.1 zdiff.1 zforce.1 zgrep.1 zless.1 zmore.1 znew.1 ; do cat $page | gzip -9c > $PKG/usr/man/man1/$page.gz done mkdir -p $PKG/usr/info cat gzip.info | gzip -9c > $PKG/usr/info/gzip.info.gz mkdir -p $PKG/usr/doc/gzip-$VERSION cp -a \ README AUTHORS COPYING INSTALL NEWS README-alpha THANKS TODO \ $PKG/usr/doc/gzip-$VERSION chmod 644 $PKG/usr/doc/gzip-$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/gzip-$VERSION-$ARCH-$BUILD.tgz cd $BUILDSTORE/a/ ; slackdtxt -t gzip-$VERSION-$ARCH-$BUILD.tgz #EOF