summaryrefslogtreecommitdiff
path: root/extra/tunepimp/PKGBUILD
blob: caa9c1f0ad92d71832c72ea6d214a892d14e177d (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
# $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' '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)
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
}