summaryrefslogtreecommitdiff
path: root/community/musepack-tools
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2011-10-15 23:14:29 +0000
committerroot <root@rshg054.dnsready.net>2011-10-15 23:14:29 +0000
commit8fd7bc607a8e4b26853b4263153a736767b163cd (patch)
tree0ce4c6dc95dd97a16e544cc72db4e90973588f4c /community/musepack-tools
parent4232b74445f80f4175c1485a53a02c79b37a63f1 (diff)
Sat Oct 15 23:14:29 UTC 2011
Diffstat (limited to 'community/musepack-tools')
-rw-r--r--community/musepack-tools/PKGBUILD39
-rw-r--r--community/musepack-tools/math.patch22
2 files changed, 30 insertions, 31 deletions
diff --git a/community/musepack-tools/PKGBUILD b/community/musepack-tools/PKGBUILD
index 3cb7732d0..3cebcc68a 100644
--- a/community/musepack-tools/PKGBUILD
+++ b/community/musepack-tools/PKGBUILD
@@ -1,32 +1,41 @@
-# $Id: PKGBUILD 11191 2010-02-06 17:49:24Z dgriffiths $
-# Maintainer: Corrado Primier <bardo@aur.archlinux.org>
+# $Id: PKGBUILD 56848 2011-10-14 21:03:20Z schiv $
+# Maintainer:
+# Contributor: Corrado Primier <bardo@aur.archlinux.org>
# Contributor: Eric Belanger <belanger@astro.umontreal.ca>
pkgname=musepack-tools
-pkgver=435
-pkgrel=2
+pkgver=475
+pkgrel=1
pkgdesc="Musepack decoder/encoder"
arch=('i686' 'x86_64')
url="http://www.musepack.net/"
license=('LGPL')
depends=('libcuefile' 'libreplaygain')
makedepends=('cmake')
-source=(http://files.musepack.net/source/musepack_src_r${pkgver}.tar.gz math.patch)
-md5sums=('0e858972978fe480fd1400b7331061de' 'f9d51d2d7ba46fbdc4d038596871f9e0')
+source=("http://files.musepack.net/source/musepack_src_r$pkgver.tar.gz"
+ "math.patch")
+md5sums=('754d67be67f713e54baf70fcfdb2817e'
+ '9de31f07a3492c7b1db1248b055fbdc8')
build() {
- export LDFLAGS="${LDFLAGS} -lm"
- cd ${srcdir}/musepack_src_r${pkgver}
+ cd "$srcdir/musepack_src_r$pkgver"
- patch -Np0 -i ${srcdir}/math.patch || return 1
+ #export LDFLAGS+="-lm"
- mkdir build
- cd build
- cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_RPATH=ON .. || return 1
- make DESTDIR="${pkgdir}" install || return 1
+ patch -Np1 -i "$srcdir/math.patch"
+
+ cmake . -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_SKIP_RPATH=ON
+}
+
+package() {
+ cd "$srcdir/musepack_src_r$pkgver"
+
+ make DESTDIR="$pkgdir" install
for bin in chap cut dec enc gain 2sv8; do
- install -Dm755 ${srcdir}/musepack_src_r${pkgver}/build/mpc${bin}/mpc${bin} \
- ${pkgdir}/usr/bin/mpc${bin}
+ install -Dm755 mpc$bin/mpc$bin "$pkgdir/usr/bin/mpc$bin"
done
}
+
+# vim:set ts=2 sw=2 et:
diff --git a/community/musepack-tools/math.patch b/community/musepack-tools/math.patch
index 11588cbbf..61b3d07ec 100644
--- a/community/musepack-tools/math.patch
+++ b/community/musepack-tools/math.patch
@@ -1,22 +1,12 @@
---- include/mpc/mpcmath.h.orig 2009-07-25 16:49:10.000000000 +0300
-+++ include/mpc/mpcmath.h 2009-07-31 15:33:45.000000000 +0300
-@@ -16,6 +16,8 @@
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- */
-
-+#include <math.h>
-+
- #include <mpc/mpc_types.h>
-
- typedef union mpc_floatint
---- CMakeLists.txt.orig 2008-03-29 20:23:23.000000000 +0100
-+++ CMakeLists.txt 2010-02-04 12:31:27.498930581 +0100
-@@ -9,7 +9,7 @@
+diff -aur musepack_src_r475.old/CMakeLists.txt musepack_src_r475/CMakeLists.txt
+--- musepack_src_r475.old/CMakeLists.txt 2011-10-14 16:31:05.536450109 +0800
++++ musepack_src_r475/CMakeLists.txt 2011-10-14 16:31:34.022962450 +0800
+@@ -16,7 +16,7 @@
add_definitions(-DFAST_MATH -DCVD_FASTLOG)
if(NOT MSVC)
--set(CMAKE_C_FLAGS "-O3 -fomit-frame-pointer -pipe")
-+set(CMAKE_C_FLAGS "-O3 -fomit-frame-pointer -pipe -lm")
+- set(CMAKE_C_FLAGS "-O3 -Wall -fomit-frame-pointer -pipe")
++ set(CMAKE_C_FLAGS "-O3 -Wall -fomit-frame-pointer -pipe -lm")
endif(NOT MSVC)
add_subdirectory(libmpcdec)