updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / exfalso / PKGBUILD
blob69cb4f26f6abbfd9270e5d728cce92678787d1d9
1 # Maintainer: Alexander Fehr <pizzapunk gmail com>
3 pkgname=exfalso
4 pkgver=2.3.2
5 pkgrel=1
6 pkgdesc="GTK+ audio tag editor"
7 arch=('any')
8 url="http://code.google.com/p/quodlibet/"
9 license=('GPL2')
10 depends=('pygtk' 'mutagen')
11 makedepends=('intltool')
12 conflicts=('quodlibet')
13 source=(http://quodlibet.googlecode.com/files/quodlibet-$pkgver.tar.gz)
14 md5sums=('bf93b2945589d9b53cfb9fa854e56e97')
16 build () {
17   cd "$srcdir"/quodlibet-$pkgver
19   # Use Python 2
20   sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' exfalso.py quodlibet/util/fmps.py
22   python2 setup.py build
25 package() {
26   cd "$srcdir"/quodlibet-$pkgver
28   python2 setup.py install --root="$pkgdir"
30   install -D -m644 quodlibet/images/exfalso.png "$pkgdir"/usr/share/pixmaps/exfalso.png
32   # Remove Quod Libet
33   rm -f "$pkgdir"/usr/bin/quodlibet
34   rm -f "$pkgdir"/usr/lib/python2.*/site-packages/quodlibet/_mmkeys.so
35   rm -f "$pkgdir"/usr/lib/python2.*/site-packages/quodlibet/_trayicon.so
36   rm -f "$pkgdir"/usr/share/applications/quodlibet.desktop
37   rm -f "$pkgdir"/usr/share/man/man1/quodlibet.1