summaryrefslogtreecommitdiff
path: root/multimedia
diff options
context:
space:
mode:
Diffstat (limited to 'multimedia')
-rw-r--r--multimedia/minitunes/README4
-rw-r--r--multimedia/minitunes/doinst.sh10
-rw-r--r--multimedia/minitunes/minitunes.SlackBuild88
-rw-r--r--multimedia/minitunes/minitunes.info10
-rw-r--r--multimedia/minitunes/slack-desc19
5 files changed, 131 insertions, 0 deletions
diff --git a/multimedia/minitunes/README b/multimedia/minitunes/README
new file mode 100644
index 0000000000..5291767f63
--- /dev/null
+++ b/multimedia/minitunes/README
@@ -0,0 +1,4 @@
+Minitunes is just another music player, only better. Minitunes unclutters
+your music listening experience with a clean and innovative interface.
+
+Note: You will need gst-plugins-{good,bad,ugly} to play various media types.
diff --git a/multimedia/minitunes/doinst.sh b/multimedia/minitunes/doinst.sh
new file mode 100644
index 0000000000..9f1846bc38
--- /dev/null
+++ b/multimedia/minitunes/doinst.sh
@@ -0,0 +1,10 @@
+if [ -x /usr/bin/update-desktop-database ]; then
+ /usr/bin/update-desktop-database -q usr/share/applications &> /dev/null
+fi
+
+if [ -e usr/share/icons/hicolor/icon-theme.cache ]; then
+ if [ -x /usr/bin/gtk-update-icon-cache ]; then
+ /usr/bin/gtk-update-icon-cache usr/share/icons/hicolor >/dev/null 2>&1
+ fi
+fi
+
diff --git a/multimedia/minitunes/minitunes.SlackBuild b/multimedia/minitunes/minitunes.SlackBuild
new file mode 100644
index 0000000000..97ff9074bb
--- /dev/null
+++ b/multimedia/minitunes/minitunes.SlackBuild
@@ -0,0 +1,88 @@
+#!/bin/sh
+
+# Copyright 2010 Binh Nguyen <binhnguyen@fastmail.fm>
+# All rights reserved.
+#
+# Redistribution and use of this script, with or without modification, is
+# permitted provided that the following conditions are met:
+#
+# 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.
+
+
+PRGNAM=minitunes
+VERSION=0.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}
+
+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
+
+set -eu
+
+rm -rf $PKG
+mkdir -p $TMP $PKG $OUTPUT
+cd $TMP
+rm -rf $PRGNAM
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
+cd $PRGNAM
+chown -R root:root .
+chmod -R u+w,go+r-w,a-s .
+
+qmake -unix PREFIX=/usr
+
+make
+make INSTALL_ROOT=$PKG install
+
+# Correct minitunes.desktop file
+sed -i 's/minitunes.desktop/Minitunes/' $PKG/usr/share/applications/minitunes.desktop
+
+find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
+
+mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+cp -a CHANGES COPYING INSTALL LICENSE.LGPL 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
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
+
+cd $PKG
+/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/multimedia/minitunes/minitunes.info b/multimedia/minitunes/minitunes.info
new file mode 100644
index 0000000000..ffa8e7a6a8
--- /dev/null
+++ b/multimedia/minitunes/minitunes.info
@@ -0,0 +1,10 @@
+PRGNAM="minitunes"
+VERSION="0.1"
+HOMEPAGE="http://flavio.tordini.org/minitunes/"
+DOWNLOAD="http://flavio.tordini.org/files/minitunes/minitunes-0.1.tar.gz"
+MD5SUM="1546f7ddbefd95c30fa288c2cf462c29"
+DOWNLOAD_x86_64=""
+MD5SUM_x86_64=""
+MAINTAINER="Binh Nguyen"
+EMAIL="binhnguyen@fastmail.fm"
+APPROVED="rworkman"
diff --git a/multimedia/minitunes/slack-desc b/multimedia/minitunes/slack-desc
new file mode 100644
index 0000000000..d7a3d24aa1
--- /dev/null
+++ b/multimedia/minitunes/slack-desc
@@ -0,0 +1,19 @@
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+ |-----handy-ruler----------------------------------------------------|
+minitunes: Minitunes (A cross-platform music player)
+minitunes:
+minitunes: Minitunes is just another music player, only better. Minitunes
+minitunes: unclutters your music listening experience with a clean and
+minitunes: innovative interface.
+minitunes:
+minitunes: Homepage: http://flavio.tordini.org/minitunes/
+minitunes:
+minitunes:
+minitunes:
+minitunes: