diff options
-rw-r--r-- | audio/musepack-tools/musepack-tools.SlackBuild | 34 | ||||
-rw-r--r-- | audio/musepack-tools/musepack-tools.info | 6 |
2 files changed, 20 insertions, 20 deletions
diff --git a/audio/musepack-tools/musepack-tools.SlackBuild b/audio/musepack-tools/musepack-tools.SlackBuild index 684555c81568..f95c8b801c87 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 diff --git a/audio/musepack-tools/musepack-tools.info b/audio/musepack-tools/musepack-tools.info index 04c5c37a5884..8ac8ca49ca4d 100644 --- a/audio/musepack-tools/musepack-tools.info +++ b/audio/musepack-tools/musepack-tools.info @@ -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" |