summaryrefslogtreecommitdiff
path: root/audio/mpc/mpc.SlackBuild
diff options
context:
space:
mode:
authorMeckafett <tom.bradish@gmail.com>2012-06-30 12:01:11 -0400
committerdsomero <xgizzmo@slackbuilds.org>2012-06-30 12:01:11 -0400
commit8c0a670c7f22f546c3857008cf5faf2e9868bcdd (patch)
treeded7540abf58889523ef85a3719806298fb88b9d /audio/mpc/mpc.SlackBuild
parent5e83757f1d1010abddcf2b1d81f28ebd13a434e3 (diff)
downloadslackbuilds-8c0a670c7f22f546c3857008cf5faf2e9868bcdd.tar.gz
audio/mpc: Updated for version 0.22.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'audio/mpc/mpc.SlackBuild')
-rw-r--r--audio/mpc/mpc.SlackBuild30
1 files changed, 8 insertions, 22 deletions
diff --git a/audio/mpc/mpc.SlackBuild b/audio/mpc/mpc.SlackBuild
index 0e5ee138fb..25922cf99f 100644
--- a/audio/mpc/mpc.SlackBuild
+++ b/audio/mpc/mpc.SlackBuild
@@ -1,20 +1,19 @@
#!/bin/sh
# Slackware build script for mpc
+#
+# Written by meckafett tom[DOT]bradish[AT]gmail.com
-# Written by Meckafett thumpadoodle@hotmail.com
PRGNAM=mpc
-VERSION=0.12.1
+VERSION=0.22
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
arm*) ARCH=arm ;;
- # Unless $ARCH is already set, use uname -m for all other archs:
*) ARCH=$( uname -m ) ;;
esac
fi
@@ -24,10 +23,6 @@ TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
-DOCS="AUTHORS COPYING ChangeLog INSTALL README
- doc/mpc-bashrc doc/mppledit doc/pls-handler.sh
- doc/m3u-handler.sh"
-
if [ "$ARCH" = "i486" ]; then
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
LIBDIRSUFFIX=""
@@ -38,7 +33,7 @@ elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
LIBDIRSUFFIX="64"
else
- SLKCFLAGS="-O2"
+ SLKCFLAGS="-O4"
LIBDIRSUFFIX=""
fi
@@ -65,22 +60,13 @@ CXXFLAGS="$SLKCFLAGS" \
make
make install DESTDIR=$PKG
-find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
+find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
-( 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 $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
-
-# Remove the documentation wrongly installed in /usr/share/doc
-rm -rf $PKG/usr/share/
-# Remove empty folder /usr/mpc
-rm -rf $PKG/usr/mpc/
+find $PKG/usr/man -type f -exec gzip -9 {} \;
+for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install