updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / quodlibet-hg / PKGBUILD
blobc179c2b40a97a314dfdc27c5ea195594ae7541af
1 # Maintainer: Anton Shestakov <engored*ya.ru>
3 pkgname=quodlibet-hg
4 pkgver=4714
5 pkgrel=1
6 pkgdesc='Audio library tagger, manager, and player for GTK+. Mercurial version.'
7 arch=('i686' 'x86_64')
8 url='http://code.google.com/p/quodlibet/'
9 license=('GPL2')
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.')
17             
18 conflicts=('quodlibet' 'quodlibet-svn' 'quodlibet-no-exfalso')
19 provides=('quodlibet')
20 install=quodlibet.install
22 _hgroot='https://quodlibet.googlecode.com/hg'
23 _hgrepo='quodlibet'
25 build() {
26   msg 'Connecting to Mercurial server....'
28   if [ -d "$_hgrepo" ] ; then
29     cd "$_hgrepo"
30     hg pull -u
31     msg 'The local files are updated.'
32   else
33     hg clone "$_hgroot" "$_hgrepo"
34   fi
36   msg 'Mercurial checkout done or server timeout'
37   msg 'Starting make...'
38   
39   cd $srcdir
40   
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
47   ./setup.py build
48 }  
50 package() {
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"