diff options
author | crocket <crockabiscuit@gmail.com> | 2011-08-10 09:13:49 -0300 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-08-10 09:13:49 -0300 |
commit | 17a576d2275472fe25361999255ee2c916040b5a (patch) | |
tree | 5b54d2d512ac1ee69228530e034116fcf8bf6052 /audio/qmpdclient | |
parent | d3f5c7ec20fc36afaf9628753caa8ab9b93f5d96 (diff) |
audio/qmpdclient: Added (Qt4 mpd client)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
Diffstat (limited to 'audio/qmpdclient')
-rw-r--r-- | audio/qmpdclient/README | 3 | ||||
-rw-r--r-- | audio/qmpdclient/doinst.sh | 9 | ||||
-rw-r--r-- | audio/qmpdclient/qmpdclient.SlackBuild | 78 | ||||
-rw-r--r-- | audio/qmpdclient/qmpdclient.info | 10 | ||||
-rw-r--r-- | audio/qmpdclient/slack-desc | 19 |
5 files changed, 119 insertions, 0 deletions
diff --git a/audio/qmpdclient/README b/audio/qmpdclient/README new file mode 100644 index 000000000000..85e6dfaeea59 --- /dev/null +++ b/audio/qmpdclient/README @@ -0,0 +1,3 @@ +qmpdclient (Qt4 mpd client) + +It is a qt4-based client for mpd. diff --git a/audio/qmpdclient/doinst.sh b/audio/qmpdclient/doinst.sh new file mode 100644 index 000000000000..3e5691a052b5 --- /dev/null +++ b/audio/qmpdclient/doinst.sh @@ -0,0 +1,9 @@ +if [ -x /usr/bin/update-desktop-database ]; then + /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1 +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/audio/qmpdclient/qmpdclient.SlackBuild b/audio/qmpdclient/qmpdclient.SlackBuild new file mode 100644 index 000000000000..458fc02d5aa8 --- /dev/null +++ b/audio/qmpdclient/qmpdclient.SlackBuild @@ -0,0 +1,78 @@ +#!/bin/sh + +# Slackware build script for qmpdclient + +# Written by crocket (crockabiscuit@gmail.com) + +PRGNAM=qmpdclient +VERSION=${VERSION:-1.2.2} +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 -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 +mv $PRGNAM $PRGNAM-$VERSION +cd $PRGNAM-$VERSION +chown -R root:root . +find . \ + \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \ + -exec chmod 755 {} \; -o \ + \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ + -exec chmod 644 {} \; + +mkdir -p build +cd build + cmake \ + -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \ + -DCMAKE_BUILD_TYPE=Release .. + make + make install/strip DESTDIR=$PKG +cd .. + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + AUTHORS COPYING Changelog INSTALL README THANKSTO \ + $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/audio/qmpdclient/qmpdclient.info b/audio/qmpdclient/qmpdclient.info new file mode 100644 index 000000000000..ced9efba55f0 --- /dev/null +++ b/audio/qmpdclient/qmpdclient.info @@ -0,0 +1,10 @@ +PRGNAM="qmpdclient" +VERSION="1.2.2" +HOMEPAGE="http://bitcheese.net/wiki/QMPDClient" +DOWNLOAD="http://dump.bitcheese.net/files/qmpdclient-1.2.2.tar.bz2" +MD5SUM="d96c4b0c8fc118ebc9de7b2b445e0bbb" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="crocket" +EMAIL="crockabiscuit@gmail.com" +APPROVED="Niels Horn" diff --git a/audio/qmpdclient/slack-desc b/audio/qmpdclient/slack-desc new file mode 100644 index 000000000000..3eb6a58458b2 --- /dev/null +++ b/audio/qmpdclient/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 ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +qmpdclient: qmpdclient (Qt4 mpd client) +qmpdclient: +qmpdclient: It is a qt4-based client for mpd. +qmpdclient: +qmpdclient: Website : http://bitcheese.net/wiki/QMPDClient +qmpdclient: +qmpdclient: +qmpdclient: +qmpdclient: +qmpdclient: +qmpdclient: |