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>
This commit is contained in:
Willy Sudiarto Raharjo 2013-11-04 16:40:58 +07:00 committed by Robby Workman
parent ab0babd646
commit fe60eb7cae
2 changed files with 20 additions and 20 deletions

View file

@ -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

View file

@ -1,8 +1,8 @@
PRGNAM="musepack-tools"
VERSION="r435"
VERSION="r475"
HOMEPAGE="http://www.musepack.net/"
DOWNLOAD="http://files.musepack.net/source/musepack_src_r435.tar.gz"
MD5SUM="0e858972978fe480fd1400b7331061de"
DOWNLOAD="http://files.musepack.net/source/musepack_src_r475.tar.gz"
MD5SUM="754d67be67f713e54baf70fcfdb2817e"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="libcuefile libreplaygain"