summaryrefslogtreecommitdiff
path: root/audio/xmms2/xmms2.SlackBuild
diff options
context:
space:
mode:
authorHeinz Wiesinger <pprkut@slackbuilds.org>2010-05-11 20:30:59 +0200
committerHeinz Wiesinger <pprkut@slackbuilds.org>2010-05-11 20:30:59 +0200
commit0ddffa1559fbfa95e6c7bbcc86f5d38c631359e8 (patch)
treeea8f2e5ad3e5e9fd1874fc6195dddc7c4aa464c0 /audio/xmms2/xmms2.SlackBuild
parent73c6e2990956fff89d9af0d0c42b8d665cb3743f (diff)
downloadslackbuilds-0ddffa1559fbfa95e6c7bbcc86f5d38c631359e8.tar.gz
audio/xmms2: Moved from multimedia
Diffstat (limited to 'audio/xmms2/xmms2.SlackBuild')
-rw-r--r--audio/xmms2/xmms2.SlackBuild60
1 files changed, 60 insertions, 0 deletions
diff --git a/audio/xmms2/xmms2.SlackBuild b/audio/xmms2/xmms2.SlackBuild
new file mode 100644
index 0000000000..95f8ac18d8
--- /dev/null
+++ b/audio/xmms2/xmms2.SlackBuild
@@ -0,0 +1,60 @@
+#!/bin/sh
+
+# Slackware build script for xmms2
+
+# Written by Kyle Guinn <elyk03@gmail.com>
+# Updated by Rainer Wittmaack <ningo@gmx.net>
+
+PRGNAM=xmms2
+VERSION="0.4DrKosmos"
+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
+
+set -e
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2
+cd $PRGNAM-$VERSION
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+export CCFLAGS="$SLKCFLAGS"
+export CXXFLAGS="$SLKCFLAGS"
+
+./waf configure --prefix=/usr --with-perl-archdir=/usr/lib/perl5/vendor_perl/5.8.8
+./waf
+./waf install --destdir=$PKG
+
+( cd $PKG
+ find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+ find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
+)
+
+# The man pages are pre-gzipped, we don't have to do that here.
+# However, we do need to move them to the proper location.
+mv $PKG/usr/share/man $PKG/usr
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING* INSTALL 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