#!/bin/sh CWD=`pwd` TMP=/tmp PKG=$TMP/package-kdeutils # Set the config option variables if they are not already set: if [ -r ../KDE.options ]; then . ../KDE.options fi # The global options may be overridden here (if needed): if [ -r ./local.options ]; then . ./local.options fi rm -rf $PKG mkdir -p $PKG/opt/kde # Avoid a version number in .la files: if [ -d /usr/lib/qt ]; then QTDIR=/usr/lib/qt fi ( cd $TMP rm -rf kdeutils-$VERSION echo "Building kdeutils-$VERSION.tar.bz2..." tar xjf $CWD/kdeutils-$VERSION.tar.bz2 cd kdeutils-$VERSION chown -R root:root . CFLAGS=$CPUOPT \ CXXFLAGS=$CPUOPT \ ./configure \ --prefix=/opt/kde \ --with-xinerama \ --disable-debug \ --program-prefix="" \ --program-suffix="" \ $TARGET make $NUMJOBS || exit make install DESTDIR=$PKG mkdir -p $PKG/usr/doc/kdeutils-$VERSION cp -a AUTHORS COPYING INSTALL README kdeutils.lsm $PKG/usr/doc/kdeutils-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc ( 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/opt/kde/man ]; then gzip -9 $PKG/opt/kde/man/man?/* fi cd $PKG makepkg -l y -c n ../kdeutils-$VERSION-$ARCH-$BUILD.tgz ) 2>&1 | tee $TMP/kdeutils.build.log