!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-arts VERSION=1.5.9 ARCH=i586 BUILD=1vl59 VL_PACKAGER=JohnB316 rm -rf $PKG mkdir -p $PKG/usr # Avoid a version number in .la files: if [ -d /usr/lib/qt ]; then QTDIR=/usr/lib/qt fi cd $TMP echo "Building arts-$VERSION.tar.bz2..." tar xjvf $CWD/arts-$VERSION.tar.bz2 cd arts-$VERSION zcat $CWD/arts.tmpdir.diff.gz | patch -p1 --verbose || exit 1 chown -R root:root . CFLAGS=$CPUOPT \ CXXFLAGS=$CPUOPT \ ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --with-xinerama \ --disable-debug \ --program-prefix="" \ --program-suffix="" \ --build=i486-slackware-linux || exit 1 make -j4 || exit 1 make install DESTDIR=$PKG || exit 1 mkdir -p $PKG/usr/doc/arts-$VERSION cp -a \ COPYING COPYING.LIB INSTALL doc/NEWS doc/README doc/TODO \ $PKG/usr/doc/arts-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc # # append build information to the end of the slack-desc file # cat >> $PKG/install/slack-desc << EOF #---------------------------------------- BUILDDATE: `date` PACKAGER: $VL_PACKAGER HOST: `uname -srm` DISTRO: `cat /etc/vector-version` CFLAGS: $CFLAGS CONFIGURE: `awk "/\.\/configure\ /" $TMP/arts-$VERSION/config.log` EOF ( cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null ) if [ -d $PKG/usr/man ]; then gzip -9 $PKG/usr/man/man?/* fi cd $PKG echo "Generating slapt-get dependencies..." requiredbuilder -v -y $PKG echo "Building package..." makepkg -l y -c n ../arts-$VERSION-$ARCH-$BUILD.tlz