#!/bin/sh [ -z $PREPKG ] && exit 1 PACKAGE=jigdo VERSION=0.7.3 FILES=$(cd $(dirname $0) ; pwd) # note: # gtk gui is broken & useless. deliberately omitted from build mkdir -p \ $PREPKG/{install,usr/doc/$PACKAGE-$VERSION}/ chown -R \ root:root . CFLAGS="-O2 -march=i486 -mtune=i686" \ CXXFLAGS="-O2 -march=i486 -mtune=i686" \ ./configure \ --prefix=/usr \ --without-gui \ --without-libdb \ --build=i486-slackware-linux &> configure.output || exit 1 make $MAKEJOBS &> make.output || exit 1 make DESTDIR=$PREPKG install &> make_install.output || exit 1 # tidy up chmod a-x \ $PREPKG/usr/man/man1/jigdo-*.1 cp -p \ doc/Hacking.txt doc/README-bindist.txt doc/TechDetails.txt \ doc/debian-jigdo-mini-howto.html COPYING README THANKS \ $PREPKG/usr/doc/$PACKAGE-$VERSION/ gzip -r9 \ $PREPKG/usr/man/ cp \ $FILES/slack-desc \ $PREPKG/install/ #find $PREPKG -exec file {} \; \ # | awk -F : '/ ELF / {print $1}' \ # | xargs strip -p --strip-unneeded