blob: eac151149a6929dbfd8616d558a76e2755ff2b37 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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:
|