#!/bin/sh VERSION=5.50 ARCH=arm BUILD=1 # Source the cross compile ARM environment variables source /armedslack/source/armslack-utils/arm-cross-envs.sh CWD=`pwd` PKG=$TMP/package-infozip rm -rf $PKG mkdir -p $PKG # Explode the package framework: cd $PKG explodepkg $CWD/_infozip.tar.gz echo "+=========+" echo "| zip-2.3 |" echo "+=========+" cd $TMP rm -rf zip-* tar xzvf $CWD/zip23.tar.gz cd zip-2.3 mkdir -p $PKG/usr/doc/zip-2.3 cp -a BUGS CHANGES INSTALL MANUAL README TODO WHATSNEW WHERE \ $PKG/usr/doc/zip-2.3 chmod 644 $PKG/usr/doc/zip-2.3/* chown root.root $PKG/usr/doc/zip-2.3/* ( ln -s $CROSSPATH/arm-linux-gcc gcc export PATH=.:$PATH make -ef unix/Makefile generic_gcc ) arm-linux-strip zip zipnote zipsplit zipcloak cat zip > $PKG/usr/bin/zip cat zipnote > $PKG/usr/bin/zipnote cat zipsplit > $PKG/usr/bin/zipsplit cat zipcloak > $PKG/usr/bin/zipcloak for page in man/zip.1 ; do cat $page | gzip -9c > $PKG/usr/man/man1/`basename $page`.gz done echo "+==========+" echo "| unzip550 |" echo "+==========+" cd $TMP tar xzvf $CWD/unzip550.tar.gz cd unzip-5.50 mkdir -p $PKG/usr/doc/unzip-5.50 cp -a BUGS COPYING Contents History.550 INSTALL README ToDo WHERE \ $PKG/usr/doc/unzip-5.50 chmod 644 $PKG/usr/doc/unzip-5.50/* chown root.root $PKG/usr/doc/unzip-5.50/* # This is what Slackware uses but obviously ARM assembler doesn't # work on x86. I don't know what the difference will be -- I presume # it'll just be slower when running unzip. #make -ef unix/Makefile linux ( ln -s $CROSSPATH/arm-linux-gcc gcc export PATH=.:$PATH make -ef unix/Makefile linux_noasm ) arm-linux-strip unzip unzipsfx funzip cat unzip > $PKG/usr/bin/unzip cat unzipsfx > $PKG/usr/bin/unzipsfx cat funzip > $PKG/usr/bin/funzip cat unix/zipgrep > $PKG/usr/bin/zipgrep cd man for page in funzip.1 unzip.1 unzipsfx.1 zipgrep.1 zipinfo.1 ; do cat $page | gzip -9c > $PKG/usr/man/man1/$page.gz done cd .. mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc # Build the package: cd $PKG echo "n" | makepkg $BUILDSTORE/a/infozip-$VERSION-$ARCH-$BUILD.tgz cd $BUILDSTORE/a/ ; slackdtxt -t infozip-$VERSION-$ARCH-$BUILD.tgz #EOF