#!/bin/sh [ -z $PREPKG ] && exit 1 PACKAGE=apr-util VERSION=1.2.8 FILES=$(cd $(dirname $0) ; pwd) # '--with-ldap' omitted # '--with-dbm=db44' substituted with '--with-dbm=db42' mkdir -p $PREPKG/{install,usr/doc/$PACKAGE-$VERSION}/ chown -R root:root . CFLAGS="-O2 -march=i486 -mcpu=i686" \ ./configure \ --prefix=/usr \ --disable-static \ --with-berkeley-db \ --with-dbm=db42 \ --with-apr=/usr \ --without-gdbm \ --without-sqlite2 \ i486-slackware-linux &> configure.output || exit 1 make $MAKEJOBS &> make.output || exit 1 make dox &> make_dox.output || exit 1 make DESTDIR=$PREPKG install &> make_install.output || exit 1 chown -R root:bin $PREPKG/usr/bin/ cp -p CHANGES INSTALL.MySQL LICENSE NOTICE \ $PREPKG/usr/doc/$PACKAGE-$VERSION/ cat << EOF > $PREPKG/install/doinst.sh #!/bin/sh EOF cp $FILES/slack-desc $PREPKG/install/ find $PREPKG -exec file {} \; \ | awk -F : '/ ELF / {print $1}' \ | xargs strip -p --strip-unneeded