1 # Maintainer: Anton Shestakov <engored*ya.ru>
6 pkgdesc='Audio library tagger, manager, and player for GTK+. Mercurial version.'
8 url='http://code.google.com/p/quodlibet/'
10 depends=('gstreamer0.10-python>=0.10.13-2' 'gstreamer0.10-base-plugins'
11 'gstreamer0.10-good-plugins' 'gstreamer0.10-ugly-plugins'
12 'mutagen' 'pygtk>=2.13.0-2')
13 makedepends=('mercurial' 'intltool')
14 optdepends=('dbus-python: audio devices support.'
15 'python-gpod: iPod support.'
16 'python-feedparser: audio feeds (podcasts) support.')
18 conflicts=('quodlibet' 'quodlibet-svn' 'quodlibet-no-exfalso')
19 provides=('quodlibet')
20 install=quodlibet.install
22 _hgroot='https://quodlibet.googlecode.com/hg'
26 msg 'Connecting to Mercurial server....'
28 if [ -d "$_hgrepo" ] ; then
31 msg 'The local files are updated.'
33 hg clone "$_hgroot" "$_hgrepo"
36 msg 'Mercurial checkout done or server timeout'
37 msg 'Starting make...'
41 rm -rf "$_hgrepo-build"
42 hg clone "$_hgrepo" "$_hgrepo-build"
43 cd "$_hgrepo-build/quodlibet"
45 sed -i -e 's/env python/env python2/' *.py
51 cd "$_hgrepo-build/quodlibet"
53 ./setup.py install --prefix="$pkgdir/usr"
55 # waiting for upstream to install icons system-wide
56 install -D -m644 "quodlibet/images/hicolor/64x64/apps/quodlibet.png" "$pkgdir/usr/share/pixmaps/quodlibet.png"
57 install -D -m644 "quodlibet/images/hicolor/64x64/apps/exfalso.png" "$pkgdir/usr/share/pixmaps/exfalso.png"
58 install -D -m644 "quodlibet/images/hicolor/scalable/apps/quodlibet.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/quodlibet.svg"
59 install -D -m644 "quodlibet/images/hicolor/scalable/apps/exfalso.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/exfalso.svg"