summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
authorcore <eroc@linuxmail.org>2010-05-11 15:00:25 +0200
committerMichiel van Wessem <michiel@slackbuilds.org>2010-05-11 15:00:25 +0200
commitf96e9cb7bb8d91dcf927e482d5caa065270ebcad (patch)
treee687b22e298a66909fe67a79dd3b8c262e3ed77a /multimedia
parent113f169bb4319192773761c2566003fc0df86b2b (diff)
downloadslackbuilds-f96e9cb7bb8d91dcf927e482d5caa065270ebcad.tar.gz
multimedia/cmus: Initial import
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/cmus/README4
-rw-r--r--multimedia/cmus/cmus.SlackBuild63
-rw-r--r--multimedia/cmus/cmus.info8
-rw-r--r--multimedia/cmus/slack-desc11
4 files changed, 86 insertions, 0 deletions
diff --git a/multimedia/cmus/README b/multimedia/cmus/README
new file mode 100644
index 0000000000..84cf6d9a0c
--- /dev/null
+++ b/multimedia/cmus/README
@@ -0,0 +1,4 @@
+cmus - ncurses based music player.
+
+cmus is a small and fast text mode music player
+for Linux and many other UNIX like operating systems.
diff --git a/multimedia/cmus/cmus.SlackBuild b/multimedia/cmus/cmus.SlackBuild
new file mode 100644
index 0000000000..fbd1d19c36
--- /dev/null
+++ b/multimedia/cmus/cmus.SlackBuild
@@ -0,0 +1,63 @@
+#!/bin/sh
+
+# Slackware build script for cmus
+
+# Written by core (eroc@linuxmail.org)
+
+set -e
+
+PRGNAM=cmus
+VERSION=2.1.0
+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 .
+
+CFLAGS="$SLKCFLAGS" \
+CXXFLAGS="$SLKCFLAGS" \
+./configure \
+ prefix=/usr \
+ mandir=/usr/man
+
+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
+)
+
+( cd $PKG/usr/man
+ find . -type f -exec gzip -9 {} \;
+ for i in $(find . -type l) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+)
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a AUTHORS COPYING HACKING README $PKG/usr/share/doc/cmus/examples $PKG/usr/doc/$PRGNAM-$VERSION
+rm -rf $PKG/usr/share/doc
+chmod -x $PKG/usr/doc/$PRGNAM-$VERSION/examples/cmus-status-display
+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
diff --git a/multimedia/cmus/cmus.info b/multimedia/cmus/cmus.info
new file mode 100644
index 0000000000..c1ce6b51a8
--- /dev/null
+++ b/multimedia/cmus/cmus.info
@@ -0,0 +1,8 @@
+PRGNAM="cmus"
+VERSION="2.1.0"
+HOMEPAGE="http://onion.dynserv.net/~timo/cmus.html"
+DOWNLOAD="http://onion.dynserv.net/~timo/files/cmus-2.1.0.tar.bz2"
+MD5SUM="11ca53a05442ee073b6e790e957b1433"
+MAINTAINER="core"
+EMAIL="eroc@linuxmail.org"
+APPROVED="BP{k}"
diff --git a/multimedia/cmus/slack-desc b/multimedia/cmus/slack-desc
new file mode 100644
index 0000000000..4b53e39af3
--- /dev/null
+++ b/multimedia/cmus/slack-desc
@@ -0,0 +1,11 @@
+cmus: cmus - ncurses based music player.
+cmus:
+cmus: cmus is a small and fast text mode music player
+cmus: for Linux and many other UNIX like operating systems.
+cmus:
+cmus: Homepage: http://onion.dynserv.net/~timo/cmus.html
+cmus:
+cmus:
+cmus:
+cmus:
+cmus: