summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorknedlyk2015-06-23 23:29:41 +0200
committerknedlyk2015-06-23 23:29:41 +0200
commit2f831acf6be71bbc3fd553f587670a50718f692f (patch)
treee29439e0a3931990ab2fb7f3d3479cc11c9449aa /PKGBUILD
downloadaur-radiotray-hg.tar.gz
Initial import
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..49179c54bcb1
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,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')