diff options
author | crocket <crockabiscuit@yahoo.com> | 2011-03-02 13:11:09 -0300 |
---|---|---|
committer | Niels Horn <niels.horn@slackbuilds.org> | 2011-03-02 13:11:09 -0300 |
commit | f17adeff4cf2eb7bb0fccc4b5c83074e54adfcc5 (patch) | |
tree | 164ae71139aa5cae5920c08c9d56c60154798be9 | |
parent | b51a3b4beebcce85d9949817511a2e6a1456f36b (diff) |
audio/kradio: Added (KDE AM/FM/Internet radio)
Signed-off-by: Niels Horn <niels.horn@slackbuilds.org>
-rw-r--r-- | audio/kradio/README | 7 | ||||
-rw-r--r-- | audio/kradio/doinst.sh | 12 | ||||
-rw-r--r-- | audio/kradio/kradio.SlackBuild | 84 | ||||
-rw-r--r-- | audio/kradio/kradio.info | 10 | ||||
-rw-r--r-- | audio/kradio/slack-desc | 19 |
5 files changed, 132 insertions, 0 deletions
diff --git a/audio/kradio/README b/audio/kradio/README new file mode 100644 index 0000000000000..e48fef0a6f57e --- /dev/null +++ b/audio/kradio/README @@ -0,0 +1,7 @@ +KRadio is a comfortable KDE4/Linux internet and AM/FM radio application. + +It requires ffmpeg, libmms, and libsndfile. +Lame and lirc are optional. + +You need to configure ALSA correctly for this to work. + diff --git a/audio/kradio/doinst.sh b/audio/kradio/doinst.sh new file mode 100644 index 0000000000000..9bc8436de4580 --- /dev/null +++ b/audio/kradio/doinst.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +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/kradio/kradio.SlackBuild b/audio/kradio/kradio.SlackBuild new file mode 100644 index 0000000000000..c2e6f5df38a9d --- /dev/null +++ b/audio/kradio/kradio.SlackBuild @@ -0,0 +1,84 @@ +#!/bin/sh + +# Slackware build script for kradio + +# Written by crocket (crockabiscuit@yahoo.com) + +PRGNAM=kradio +SRCNAM=kradio4 +VERSION=${VERSION:-4.0.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/$SRCNAM-$VERSION.tar.bz2 +mv $SRCNAM-$VERSION $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 \ + -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DCMAKE_BUILD_TYPE=Release .. + make + make install DESTDIR=$PKG +cd .. + +sed -i 's/svg/png/' $PKG/usr/share/applications/kde4/kradio4.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 +mv $PKG/usr/share/doc/kradio4 $PKG/usr/doc/$PRGNAM-$VERSION +cp -a dot-lircrc.example $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/kradio/kradio.info b/audio/kradio/kradio.info new file mode 100644 index 0000000000000..0c7f2ac3bf111 --- /dev/null +++ b/audio/kradio/kradio.info @@ -0,0 +1,10 @@ +PRGNAM="kradio" +VERSION="4.0.2" +HOMEPAGE="http://kradio.sourceforge.net/" +DOWNLOAD="http://downloads.sourceforge.net/kradio/kradio4-4.0.2.tar.bz2" +MD5SUM="18fea3e2bc7100882075187c6a89f7bd" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +MAINTAINER="crocket" +EMAIL="crockabiscuit@yahoo.com" +APPROVED="Niels Horn" diff --git a/audio/kradio/slack-desc b/audio/kradio/slack-desc new file mode 100644 index 0000000000000..4f17af60fc4b4 --- /dev/null +++ b/audio/kradio/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------------------------------------------------------| +kradio: kradio (Linux KDE AM/FM/Internet radio) +kradio: +kradio: KRadio is a comfortable KDE4/Linux internet and AM/FM radio +kradio: application. +kradio: +kradio: Website: http://kradio.sourceforge.net/ +kradio: +kradio: +kradio: +kradio: +kradio: |