summaryrefslogtreecommitdiff
path: root/audio/gmusicbrowser
diff options
context:
space:
mode:
Diffstat (limited to 'audio/gmusicbrowser')
-rw-r--r--audio/gmusicbrowser/README9
-rw-r--r--audio/gmusicbrowser/gmusicbrowser.SlackBuild42
-rw-r--r--audio/gmusicbrowser/gmusicbrowser.info6
3 files changed, 36 insertions, 21 deletions
diff --git a/audio/gmusicbrowser/README b/audio/gmusicbrowser/README
index 9e48fd4244..86d22dbd03 100644
--- a/audio/gmusicbrowser/README
+++ b/audio/gmusicbrowser/README
@@ -1,2 +1,9 @@
-gmusicbrowser is an open-source jukebox, written in perl,
+gmusicbrowser is an open-source jukebox, written in perl,
for large collections of mp3/ogg/flac/mpc files.
+
+The following additional features may be enabled by installing the listed
+optional dependencies:
+
+* tray icon, with a very customizable tip window, which can be used to
+control the player: perl-trayicon
+* support gstreamer for playback: perl-gstreamer
diff --git a/audio/gmusicbrowser/gmusicbrowser.SlackBuild b/audio/gmusicbrowser/gmusicbrowser.SlackBuild
index 6fde872447..ebd0f58509 100644
--- a/audio/gmusicbrowser/gmusicbrowser.SlackBuild
+++ b/audio/gmusicbrowser/gmusicbrowser.SlackBuild
@@ -3,6 +3,7 @@
# Slackware build script for gmusicbrowser
# (C) 2007 Michael Wagner <lapinours@web.de>
+# Copyright 2014 chinarulezzz
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -11,23 +12,29 @@
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
-# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
-# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
-# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
-# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
-# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
-# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
-# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
-# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
-# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
-# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
+# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
+# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
+# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
+# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=gmusicbrowser
-VERSION=1.1.8
+VERSION=${VERSION:-1.1.12}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-ARCH=noarch # /usr/bin/gmusicbrowser is a perl script
+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}
@@ -35,27 +42,28 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
set -e
-
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+tar -xzvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
find -L . \
\( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
-o -perm 511 \) -exec chmod 755 {} \; -o \
\( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
- -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
make
make install DESTDIR=$PKG
mv $PKG/usr/share/man $PKG/usr && rm -rf $PKG/usr/share/man
-gzip -9 $PKG/usr/man/man1/* 2> /dev/null
+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
-rm -rf $PKG/usr/lib*
+# Not needed
+rm -rf $PKG/usr/lib
# Let's not pollute /usr/share/icons
mv $PKG/usr/share/icons $PKG/usr/share/pixmaps
diff --git a/audio/gmusicbrowser/gmusicbrowser.info b/audio/gmusicbrowser/gmusicbrowser.info
index 197083505e..6629151649 100644
--- a/audio/gmusicbrowser/gmusicbrowser.info
+++ b/audio/gmusicbrowser/gmusicbrowser.info
@@ -1,8 +1,8 @@
PRGNAM="gmusicbrowser"
-VERSION="1.1.8"
+VERSION="1.1.12"
HOMEPAGE="http://gmusicbrowser.org"
-DOWNLOAD="http://gmusicbrowser.org/download/gmusicbrowser-1.1.8.tar.gz"
-MD5SUM="839ed7fb8a1a7a4c39c868e228f93579"
+DOWNLOAD="http://gmusicbrowser.org/download/gmusicbrowser-1.1.12.tar.gz"
+MD5SUM="348029d561be345540198cb415c6cd25"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="perl-gtk2"