summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 49179c54bcb1e1f87d420e114835727f25be798e (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
47
48
# Contributor: Yarema aka Knedlyk <yupadmin@gmail.com>
_pkgname=radiotray
pkgname=${_pkgname}-hg
pkgver=495
pkgrel=1
pkgdesc="An online radio streaming player that runs on a Linux system tray."
arch=(any)
url="http://radiotray.wordpress.com/"
license=(GPL)
depends=('gstreamer0.10-base-plugins' 'gstreamer0.10-python' 'pygtk' \
'python2-notify' 'python2-xdg' 'python2-dbus' 'gstreamer0.10-good-plugins' \
'python2-gobject' 'python2-lxml')
optdepends=('gstreamer0.10-bad-plugins' 'gstreamer0.10-ugly-plugins' 'gstreamer0.10-ffmpeg')
source=('radiotray::hg+https://bitbucket.org/carlmig/radio-tray#revision=40d9969'
	encoding.patch)
makedepends=('mercurial')
provides=(radiotray)
conflicts=('radiotray' 'radiotray-svn')

#rev=1717a0e
rev=a071fa7

pkgver() {
  cd "$srcdir/${_pkgname}"
  #echo $(hg identify -n).$(hg identify -i)
  # In mercurial, you cannot assure that id -n is equal in two copies
  # of the same repository!!!!! So let's try this and hope for the best.
#  echo $(hg id -n).$(hg id -i)
  echo $(hg id -n)
}


build() {
	cd $srcdir/${_pkgname}/src
	patch -p4 < $srcdir/encoding.patch
}

package() {

	cd $srcdir/${_pkgname}
	python2 setup.py install --root=$pkgdir/ --optimize=1

	chmod +x $pkgdir/usr/bin/radiotray
	find $pkgdir -perm 600 -exec chmod 644 {} \;
}

md5sums=('SKIP'
	'4c6862df37e0fcb304d9f0b801f85332')