blob: 6c5554a67fa19b3bcb40269a33cbfb0e02bcd9f7 (
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
44
45
46
47
48
49
|
# $Id: PKGBUILD 149566 2012-02-08 14:42:07Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
pkgname=tunepimp
pkgver=0.5.3
pkgrel=9
pkgdesc="A development library geared towards developers who wish to create MusicBrainz enabled tagging applications (aka libtunepimp)"
url="http://www.musicbrainz.org/products/tunepimp/"
arch=('i686' 'x86_64' 'mips64el')
license=('GPL')
options=('!libtool' '!makeflags')
makedepends=('python2')
depends=('curl' 'musicbrainz' 'zlib' 'libmad' 'flac' 'libvorbis' 'readline' 'libmpcdec' 'libofa' 'taglib' 'libmp4v2')
replaces=('trm')
source=(ftp://ftp.musicbrainz.org/pub/musicbrainz/lib${pkgname}-${pkgver}.tar.gz
tunepimp-gcc43.patch
gcc4.4.patch
mp4v2-1.9.patch
tunepimp-curl-headers.patch)
build() {
cd ${srcdir}/lib${pkgname}-${pkgver}
sed -i -e 's,-ltermcap,-lncurses,' configure
sed -i -e 's:-lthr:-lpthread:g' lib/threads/posix/Makefile.in
patch -Np0 -i ${srcdir}/tunepimp-gcc43.patch
patch -Np1 -i ${srcdir}/gcc4.4.patch
patch -Np1 -i ${srcdir}/mp4v2-1.9.patch
patch -Np1 -i ${srcdir}/tunepimp-curl-headers.patch
./configure --prefix=/usr
make
}
package() {
cd ${srcdir}/lib${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
# install python bindings
cd python
python2 setup.py install --root=${pkgdir}
# fix includes for kdemultimedia
cd ${pkgdir}/usr/include
ln -s tunepimp-0.5 tunepimp
}
md5sums=('09649f983acef679a548344ba7a9bb2f'
'40f48ad658958b909909b204bf9b1367'
'b325bf8ed98bc008611ece0c418642f8'
'9f41d473a07e13808762545772fe3435'
'9cefd852995ebd2c4f733f2bef18c12a')
|