TMP=/tmp CWD=`pwd` NAME=k3bmonkeyaudioplugin PKG=$TMP/package-$NAME VL_PACKAGER=JohnB316 VERSION=3.1 ARCH=i586 BUILD=1vl58 if [ "$ARCH" = "i386" ]; then SLKCFLAGS="-O2 -march=i386 -mcpu=i686" elif [ "$ARCH" = "i586" ]; then SLKCFLAGS="-O2 -march=i586 -mtune=i686" elif [ "$ARCH" = "s390" ]; then SLKCFLAGS="-O2" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2" fi rm -rf $PKG mkdir -p $PKG/usr cd $TMP tar xjvf $CWD/$NAME-$VERSION.tar.bz2 || exit 1 cd $NAME-$VERSION chown -R root.root . CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ --prefix=/opt/kde \ --program-prefix="" \ --program-suffix="" \ --disable-debug \ i486-slackware-linux || exit 1 make || exit 1 make install DESTDIR=$PKG || exit 1 ( cd $PKG find . | xargs file | grep "executable" | grep ELF | cut -d : -f 1 | xargs -r strip --strip-unneeded find . | xargs file | grep "shared object" | grep ELF | cut -d : -f 1 | xargs -r strip --strip-unneeded ) mkdir -p $PKG/usr/doc/$NAME-$VERSION cp -a \ AUTHORS ChangeLog COPYING INSTALL NEWS README TODO \ $PKG/usr/doc/$NAME-$VERSION/ find $PKG/usr/doc -type f | xargs -r chmod 644 find $PKG/usr/doc -type d | xargs -r chmod 755 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: $SLKCFLAGS CONFIGURE: `awk "/\.\/configure\ /" $TMP/$NAME-$VERSION/config.log` EOF cd $PKG requiredbuilder -v -y $PKG makepkg -l y -c n $TMP/$NAME-$VERSION-$ARCH-$BUILD.tlz