summaryrefslogtreecommitdiff
path: root/audio/quodlibet/quodlibet.SlackBuild
diff options
context:
space:
mode:
authorK.D.Hedger <kdhedger@yahoo.co.uk>2010-07-10 00:57:54 -0500
committerRobby Workman <rworkman@slackbuilds.org>2010-07-10 02:17:59 -0500
commit1c1fb42eff7ea51c128f796ea7a60c7c9e5754da (patch)
tree28760b74d99081854bdb25882f59054e6811e54d /audio/quodlibet/quodlibet.SlackBuild
parent3fd75b6ee27aa1818f2cdd79092288f6bb383008 (diff)
downloadslackbuilds-1c1fb42eff7ea51c128f796ea7a60c7c9e5754da.tar.gz
audio/quodlibet: Added (Music Management Program)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'audio/quodlibet/quodlibet.SlackBuild')
-rw-r--r--audio/quodlibet/quodlibet.SlackBuild67
1 files changed, 67 insertions, 0 deletions
diff --git a/audio/quodlibet/quodlibet.SlackBuild b/audio/quodlibet/quodlibet.SlackBuild
new file mode 100644
index 0000000000..c8418494c3
--- /dev/null
+++ b/audio/quodlibet/quodlibet.SlackBuild
@@ -0,0 +1,67 @@
+#!/bin/sh
+
+# Slackware build script for quodlibet
+
+# Written by K.D.Hedger kdhedger@yahoo.co.uk
+
+PRGNAM=quodlibet
+VERSION=2.2.1
+BUILD=${BUILD:-1}
+TAG=${TAG:-_SBo}
+
+if [ -z "$ARCH" ]; then
+ case "$( uname -m )" in
+ i?86) ARCH=i486 ;;
+ arm*) ARCH=arm ;;
+ *) ARCH=$( uname -m ) ;;
+ esac
+fi
+
+CWD=$(pwd)
+TMP=${TMP:-/tmp/SBo}
+PKG=$TMP/package-$PRGNAM
+OUTPUT=${OUTPUT:-/tmp}
+
+DOCS="COPYING HACKING NEWS PKG-INFO README"
+
+if [ "$ARCH" = "i486" ]; then
+ SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "i686" ]; then
+ SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ LIBDIRSUFFIX=""
+elif [ "$ARCH" = "x86_64" ]; then
+ SLKCFLAGS="-O2 -fPIC"
+ LIBDIRSUFFIX="64"
+else
+ SLKCFLAGS="-O2"
+ LIBDIRSUFFIX=""
+fi
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM-$VERSION
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM-$VERSION
+chown -R root:root .
+
+python setup.py install --root=$PKG
+
+mv $PKG/usr/share/man $PKG/usr
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+
+mkdir -p $PKG/usr/share/pixmaps
+cp -a quodlibet/images/{quodlibet,exfalso}.png $PKG/usr/share/pixmaps
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a $DOCS $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
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}