diff options
Diffstat (limited to 'multimedia/kmplayer/kmplayer.SlackBuild')
-rw-r--r-- | multimedia/kmplayer/kmplayer.SlackBuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/multimedia/kmplayer/kmplayer.SlackBuild b/multimedia/kmplayer/kmplayer.SlackBuild new file mode 100644 index 0000000000..9636a7eecf --- /dev/null +++ b/multimedia/kmplayer/kmplayer.SlackBuild @@ -0,0 +1,61 @@ +#!/bin/sh + +# Slackware build script for kmplayer + +# Written by core (eroc@linuxmail.org) + +set -e + +PRGNAM=kmplayer +VERSION=0.9.4a +ARCH=${ARCH:-i486} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +fi + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar -jxvf $CWD/$PRGNAM-$VERSION.tar.bz2 +cd $PRGNAM-$VERSION +chown -R root:root . +chmod -R u+w,go+r-w,a-s . + +KDEPREF=$(kde-config --prefix) || true + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + --prefix=$KDEPREF \ + --enable-shared=yes \ + --enable-static=no \ + --without-gstreamer + +make +make install DESTDIR=$PKG + +( 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 +) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a AUTHORS ChangeLog COPYING COPYING-DOCS COPYING.LIB INSTALL NEWS \ + README TODO $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz |