summaryrefslogtreecommitdiff
path: root/audio/musepack-tools/musepack-tools.SlackBuild
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackware-id.org>2013-11-04 16:40:58 +0700
committerRobby Workman <rworkman@slackbuilds.org>2013-11-04 22:09:02 -0600
commitfe60eb7cae0c7293f40746a61d5aa74bb862ed84 (patch)
tree8cab0f19e5bac16a7e897d360bcdaab02694460f /audio/musepack-tools/musepack-tools.SlackBuild
parentab0babd646b77a855bbdd9fbacc94775490e5929 (diff)
downloadslackbuilds-fe60eb7cae0c7293f40746a61d5aa74bb862ed84.tar.gz
audio/musepack-tools: Updated for version r475.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org> Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'audio/musepack-tools/musepack-tools.SlackBuild')
-rw-r--r--audio/musepack-tools/musepack-tools.SlackBuild34
1 files changed, 17 insertions, 17 deletions
diff --git a/audio/musepack-tools/musepack-tools.SlackBuild b/audio/musepack-tools/musepack-tools.SlackBuild
index 684555c815..f95c8b801c 100644
--- a/audio/musepack-tools/musepack-tools.SlackBuild
+++ b/audio/musepack-tools/musepack-tools.SlackBuild
@@ -5,16 +5,14 @@
PRGNAM=musepack-tools
SRCNAM=musepack_src
-VERSION=${VERSION:-r435}
+VERSION=${VERSION:-r475}
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
@@ -47,23 +45,22 @@ rm -rf $SRCNAM\_$VERSION
tar xzvf $CWD/$SRCNAM\_$VERSION.tar.gz
cd $SRCNAM\_$VERSION
chown -R root:root .
-find . \
+find -L . \
\( -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 {} \;
+ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
+ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \;
-# too much pain to use CMake
-autoreconf -vif
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- --prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --build=$ARCH-slackware-linux
-
-make
-make install DESTDIR=$PKG
+mkdir -p build
+cd build
+ cmake \
+ -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_SKIP_RPATH=ON \
+ -DCMAKE_BUILD_TYPE=Release ..
+ make
+ make install DESTDIR=$PKG
+cd ..
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
@@ -71,6 +68,9 @@ find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
+# Remove the svn-related files
+rm -Rf $PKG/usr/include/mpc/.svn
+
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc