diff options
Diffstat (limited to 'community/musepack-tools/PKGBUILD')
-rw-r--r-- | community/musepack-tools/PKGBUILD | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/community/musepack-tools/PKGBUILD b/community/musepack-tools/PKGBUILD new file mode 100644 index 000000000..eac151149 --- /dev/null +++ b/community/musepack-tools/PKGBUILD @@ -0,0 +1,43 @@ +# $Id: PKGBUILD 67972 2012-03-16 13:24:52Z giovanni $ +# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org> +# Contributor: Corrado Primier <bardo@aur.archlinux.org> +# Contributor: Eric Belanger <belanger@astro.umontreal.ca> + +pkgname=musepack-tools +pkgver=475 +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=('754d67be67f713e54baf70fcfdb2817e' + '9de31f07a3492c7b1db1248b055fbdc8') + +build() { + cd "$srcdir/musepack_src_r$pkgver" + + #export LDFLAGS+="-lm" + + 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 mpc$bin/mpc$bin "$pkgdir/usr/bin/mpc$bin" + done + + find ${pkgdir} -depth -type d -name .svn -exec rm -rf {} \; +} + +# vim:set ts=2 sw=2 et: |