From 15890c2fd9b45c7879daf66254f60ca30a5c54bb Mon Sep 17 00:00:00 2001 From: Heinz Wiesinger Date: Tue, 11 May 2010 20:30:45 +0200 Subject: [PATCH] audio/cmus: Moved from multimedia --- {multimedia => audio}/cmus/README | 0 audio/cmus/cmus.SlackBuild | 87 +++++++++++++++++++++++++++ {multimedia => audio}/cmus/cmus.info | 6 +- {multimedia => audio}/cmus/slack-desc | 0 multimedia/cmus/cmus.SlackBuild | 64 -------------------- 5 files changed, 90 insertions(+), 67 deletions(-) rename {multimedia => audio}/cmus/README (100%) create mode 100644 audio/cmus/cmus.SlackBuild rename {multimedia => audio}/cmus/cmus.info (65%) rename {multimedia => audio}/cmus/slack-desc (100%) delete mode 100644 multimedia/cmus/cmus.SlackBuild diff --git a/multimedia/cmus/README b/audio/cmus/README similarity index 100% rename from multimedia/cmus/README rename to audio/cmus/README diff --git a/audio/cmus/cmus.SlackBuild b/audio/cmus/cmus.SlackBuild new file mode 100644 index 0000000000..4ed66b1013 --- /dev/null +++ b/audio/cmus/cmus.SlackBuild @@ -0,0 +1,87 @@ +#!/bin/sh + +# Slackware build script for cmus + +# Copyright (c) 2008, Antonio Hernández Blas +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions are met: +# 1.- Redistributions of source code 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=cmus +VERSION=2.2.0 +ARCH=${ARCH:-i486} +BUILD=${BUILD:-2} +TAG=${TAG:-_SBo} + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar -jxvf $CWD/$PRGNAM-$VERSION.tar.bz2 +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 {} \; + +CFLAGS="$SLKCFLAGS" \ +CXXFLAGS="$SLKCFLAGS" \ +./configure \ + prefix=/usr \ + mandir=/usr/man \ + exampledir="/usr/doc/$PRGNAM-$VERSION/examples" \ + DEBUG=0 + +make +make install DESTDIR=$PKG + +( cd $PKG + find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true + find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null +) + +( cd $PKG/usr/man + find . -type f -exec gzip -9 {} \; + for i in $(find . -type l) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done +) + +cp -a AUTHORS COPYING HACKING README $PKG/usr/doc/$PRGNAM-$VERSION +chmod -x $PKG/usr/doc/$PRGNAM-$VERSION/examples/cmus-status-display +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz diff --git a/multimedia/cmus/cmus.info b/audio/cmus/cmus.info similarity index 65% rename from multimedia/cmus/cmus.info rename to audio/cmus/cmus.info index e3f23f6347..41f1e402c9 100644 --- a/multimedia/cmus/cmus.info +++ b/audio/cmus/cmus.info @@ -3,6 +3,6 @@ VERSION="2.2.0" HOMEPAGE="http://cmus.sourceforge.net/" DOWNLOAD="http://mirror.greaterscope.net/cmus/cmus-2.2.0.tar.bz2" MD5SUM="7a9895ecfc10cd16577c73051436962f" -MAINTAINER="core" -EMAIL="eroc@linuxmail.org" -APPROVED="BP{k}" +MAINTAINER="Antonio Hernández Blas" +EMAIL="hba.nihilismus@gmail.com" +APPROVED="David Somero" diff --git a/multimedia/cmus/slack-desc b/audio/cmus/slack-desc similarity index 100% rename from multimedia/cmus/slack-desc rename to audio/cmus/slack-desc diff --git a/multimedia/cmus/cmus.SlackBuild b/multimedia/cmus/cmus.SlackBuild deleted file mode 100644 index 3d9e33996d..0000000000 --- a/multimedia/cmus/cmus.SlackBuild +++ /dev/null @@ -1,64 +0,0 @@ -#!/bin/sh - -# Slackware build script for cmus -# Written by core (eroc@linuxmail.org) - -PRGNAM=cmus -VERSION=2.2.0 -ARCH=${ARCH:-i486} -BUILD=${BUILD:-1} -TAG=${TAG:-_SBo} - -CWD=$(pwd) -TMP=${TMP:-/tmp/SBo} -PKG=$TMP/package-$PRGNAM -OUTPUT=${OUTPUT:-/tmp} - -if [ "$ARCH" = "i486" ]; then - SLKCFLAGS="-O2 -march=i486 -mtune=i686" -elif [ "$ARCH" = "i686" ]; then - SLKCFLAGS="-O2 -march=i686 -mtune=i686" -fi - -set -e - -rm -rf $PKG -mkdir -p $TMP $PKG $OUTPUT -cd $TMP -rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.bz2 -cd $PRGNAM-$VERSION -chown -R root:root . -chmod -R u+w,go+r-w,a-s . - -CFLAGS="$SLKCFLAGS" \ -CXXFLAGS="$SLKCFLAGS" \ -./configure \ - prefix=/usr \ - mandir=/usr/man - -make -make install DESTDIR=$PKG - -( cd $PKG - find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true - find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null -) - -( cd $PKG/usr/man - find . -type f -exec gzip -9 {} \; - for i in $(find . -type l) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done -) - -mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a AUTHORS COPYING HACKING README $PKG/usr/share/doc/cmus/examples \ - $PKG/usr/doc/$PRGNAM-$VERSION -rm -rf $PKG/usr/share/doc -chmod -x $PKG/usr/doc/$PRGNAM-$VERSION/examples/cmus-status-display -cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild - -mkdir -p $PKG/install -cat $CWD/slack-desc > $PKG/install/slack-desc - -cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz