updated on Sat Jan 14 12:12:45 UTC 2012
[aur-mirror.git] / radiotray-hg / PKGBUILD
blob46dad72a59b09cac033476d0be7a4af84ef3a50a
1 # Contributor: Yarema aka Knedlyk <yupadmin@gmail.com>
2 _pkgname=radiotray
3 pkgname=${_pkgname}-hg
4 pkgver=408
5 pkgrel=1
6 pkgdesc="An online radio streaming player that runs on a Linux system tray."
7 arch=(any)
8 url="http://radiotray.sourceforge.net/"
9 license=(GPL)
10 depends=('pyxdg' 'gstreamer0.10' 'gstreamer0.10-base' 'gstreamer0.10-base-plugins' 'gstreamer0.10-python' 'pygtk' 
11         'python-lxml' 'pygobject' 'python2-pyinotify' 'dbus-python' 'python-notify'
12         'gstreamer0.10-good' 'gstreamer0.10-good-plugins' 'gstreamer0.10-ffmpeg')
13 optdepends=('gstreamer0.10-bad' 'gstreamer0.10-bad-plugins')
14 makedepends=('mercurial')
15 provides=(radiotray)
16 conflicts=('radiotray' 'radiotray-svn')
18 _hgroot=http://radiotray.hg.sourceforge.net:8000/hgroot/radiotray/
19 _hgrepo=radiotray
22 build() {
23         if [ -d $_hgrepo ]; then
24                 cd $startdir/src/$_hgrepo
25                 hg pull -u
26                 else
27                         hg clone $_hgroot $_hgrepo
28                         cd $startdir/src/$_hgrepo
29         fi
30                                                                                         
31         msg "Starting make..."
33         rm -rf $srcdir/$_hgrepo-build
34         cp -rf $srcdir/$_hgrepo $srcdir/$_hgrepo-build
35         cd $srcdir/$_hgrepo-build
36         
38         python2 setup.py install --root=$pkgdir/ --optimize=1
40         chmod +x $pkgdir/usr/bin/radiotray
41         find $pkgdir -perm 600 -exec chmod 644 {} \;