summaryrefslogtreecommitdiff
path: root/extra/tunepimp/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'extra/tunepimp/PKGBUILD')
-rw-r--r--extra/tunepimp/PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/extra/tunepimp/PKGBUILD b/extra/tunepimp/PKGBUILD
new file mode 100644
index 000000000..a3fe45ed5
--- /dev/null
+++ b/extra/tunepimp/PKGBUILD
@@ -0,0 +1,46 @@
+# $Id: PKGBUILD 90474 2010-09-11 21:30:49Z andrea $
+# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
+
+pkgname=tunepimp
+pkgver=0.5.3
+pkgrel=8
+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')
+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)
+md5sums=('09649f983acef679a548344ba7a9bb2f'
+ '40f48ad658958b909909b204bf9b1367'
+ 'b325bf8ed98bc008611ece0c418642f8'
+ '9f41d473a07e13808762545772fe3435')
+
+ 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
+ ./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
+}