#!/bin/sh [ -z $PREPKG ] && exit 1 PACKAGE=audacious-plugins VERSION=1.3.5 FILES=$(cd $(dirname $0) ; pwd) mkdir -p $PREPKG/{install,usr/doc/$PACKAGE-$VERSION}/ chown -R root:root . CFLAGS="-O2 -march=i486 -mcpu=i686" CXXFLAGS="-O2 -march=i486 -mcpu=i686" \ ./configure \ --prefix=/usr \ --disable-sse2 \ --disable-statusicon \ --enable-amidiplug \ --enable-chardet \ --with-ipv6 \ i486-slackware-linux &> configure.output || exit 1 make $MAKEJOBS &> make.output || exit 1 make DESTDIR=$PREPKG install &> make_install.output || exit 1 chown -R root:bin $PREPKG/usr/bin/ cp -p AUTHORS COPYING ChangeLog NEWS \ $PREPKG/usr/doc/$PACKAGE-$VERSION/ cp $FILES/slack-desc $PREPKG/install/ find $PREPKG -exec file {} \; \ | awk -F : '/ ELF / {print $1}' \ | xargs strip -p --strip-unneeded