From f337c8f4e9f0869b2fb7ecbf4fa1892ea054e3ff Mon Sep 17 00:00:00 2001 From: Larry Hajali Date: Sun, 1 Dec 2013 17:47:49 +0700 Subject: audio/kradio: Updated for version 4.0.7 + New Maintainer. Signed-off-by: Willy Sudiarto Raharjo --- audio/kradio/doinst.sh | 3 --- audio/kradio/kradio.SlackBuild | 53 +++++++++++++++++++++++++++++------------- audio/kradio/kradio.info | 12 +++++----- 3 files changed, 43 insertions(+), 25 deletions(-) (limited to 'audio') diff --git a/audio/kradio/doinst.sh b/audio/kradio/doinst.sh index 9bc8436de4..d20cdedba7 100644 --- a/audio/kradio/doinst.sh +++ b/audio/kradio/doinst.sh @@ -1,5 +1,3 @@ -#!/bin/sh - if [ -x /usr/bin/update-desktop-database ]; then /usr/bin/update-desktop-database -q /usr/share/applications >/dev/null 2>&1 fi @@ -9,4 +7,3 @@ if [ -e usr/share/icons/hicolor/icon-theme.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 index c2d7cb9d6d..3ef216d010 100644 --- a/audio/kradio/kradio.SlackBuild +++ b/audio/kradio/kradio.SlackBuild @@ -2,11 +2,30 @@ # Slackware build script for kradio -# Written by crocket (crockabiscuit@gmail.com) +# Originally written by crocket (crockabiscuit@gmail.com) +# Currently maintained by Larry Hajali +# 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=kradio SRCNAM=kradio4 -VERSION=${VERSION:-4.0.6} +VERSION=${VERSION:-4.0.7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -42,36 +61,39 @@ set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP -rm -rf $PRGNAM-$VERSION +rm -rf $SRCNAM-$VERSION tar xvf $CWD/$SRCNAM-$VERSION.tar.bz2 -mv $SRCNAM-$VERSION $PRGNAM-$VERSION -cd $PRGNAM-$VERSION +cd $SRCNAM-$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 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ - -exec chmod 644 {} \; + \( -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 {} \; mkdir -p build cd build - cmake \ + cmake -G "Unix Makefiles" \ + -DCMAKE_INSTALL_PREFIX:PATH="/usr" \ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \ - -DCMAKE_INSTALL_PREFIX=/usr \ - -DLIB_SUFFIX=${LIBDIRSUFFIX} \ + -DCMAKE_SKIP_RPATH=ON \ -DCMAKE_BUILD_TYPE=Release .. - make + + make VERBOSE=1 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/man/man1 +install -m 0644 debian/*.1 $PKG/usr/man/man1 +gzip -9 $PKG/usr/man/man1/*.? + mkdir -p $PKG/usr/doc mv $PKG/usr/share/doc/kradio4 $PKG/usr/doc/$PRGNAM-$VERSION +rm -rf $PKG/usr/share/doc cp -a dot-lircrc.example $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild @@ -81,4 +103,3 @@ 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 index d4b02ad21d..a2791cc9e4 100644 --- a/audio/kradio/kradio.info +++ b/audio/kradio/kradio.info @@ -1,10 +1,10 @@ PRGNAM="kradio" -VERSION="4.0.6" +VERSION="4.0.7" HOMEPAGE="http://kradio.sourceforge.net/" -DOWNLOAD="http://downloads.sourceforge.net/kradio/kradio4-4.0.6.tar.bz2" -MD5SUM="ee9214156465e0416bb369f78b4a5eae" +DOWNLOAD="http://downloads.sourceforge.net/kradio/kradio4-4.0.7.tar.bz2" +MD5SUM="75eb51fdd55f0557969febb2c1f82b1c" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="ffmpeg libmms" -MAINTAINER="crocket" -EMAIL="crockabiscuit@gmail.com" +REQUIRES="%README% ffmpeg libmms" +MAINTAINER="Larry Hajali" +EMAIL="larryhaja[at]gmail[dot]com" -- cgit v1.2.3