summaryrefslogtreecommitdiff
path: root/community/musepack-tools/PKGBUILD
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /community/musepack-tools/PKGBUILD
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'community/musepack-tools/PKGBUILD')
-rw-r--r--community/musepack-tools/PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/community/musepack-tools/PKGBUILD b/community/musepack-tools/PKGBUILD
new file mode 100644
index 000000000..3cb7732d0
--- /dev/null
+++ b/community/musepack-tools/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 11191 2010-02-06 17:49:24Z dgriffiths $
+# Maintainer: Corrado Primier <bardo@aur.archlinux.org>
+# Contributor: Eric Belanger <belanger@astro.umontreal.ca>
+
+pkgname=musepack-tools
+pkgver=435
+pkgrel=2
+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')
+
+build() {
+ export LDFLAGS="${LDFLAGS} -lm"
+ cd ${srcdir}/musepack_src_r${pkgver}
+
+ patch -Np0 -i ${srcdir}/math.patch || return 1
+
+ mkdir build
+ cd build
+ cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_RPATH=ON .. || return 1
+ make DESTDIR="${pkgdir}" install || return 1
+
+ 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}
+ done
+}