diff options
author | Patrick Griffis | 2015-10-15 01:17:28 -0400 |
---|---|---|
committer | Patrick Griffis | 2015-10-15 01:17:28 -0400 |
commit | 1ef1398f21690654c09a3d77ca4dc4e4fba23f25 (patch) | |
tree | 245e0c8e2cb18aef1ba8265f37b1d1ef3bd108a3 | |
parent | d6477f28567321a45be40d09102524537e22eeb4 (diff) | |
download | aur-1ef1398f21690654c09a3d77ca4dc4e4fba23f25.tar.gz |
Fix building and improve pkgver()
-rw-r--r-- | .SRCINFO | 9 | ||||
-rw-r--r-- | PKGBUILD | 19 |
2 files changed, 17 insertions, 11 deletions
@@ -1,20 +1,21 @@ pkgbase = pithos-git pkgdesc = Pandora Internet Radio player for GNOME - pkgver = 485 + pkgver = 1.1.1.r27.g81ef2a9 pkgrel = 1 - epoch = 1 - url = http://pithos.github.io/ + url = https://pithos.github.io/ install = pithos-git.install arch = any license = GPL3 makedepends = git + makedepends = automake + makedepends = autoconf + makedepends = intltool depends = python>=3.5 depends = gtk3 depends = python-gobject depends = gst-plugins-good depends = gst-plugins-bad depends = gst-plugins-base - depends = python-setuptools depends = python-cairo optdepends = libkeybinder3: for media keys plugin optdepends = gst-plugins-ugly: MP3 playback support @@ -4,16 +4,15 @@ _pkgname=pithos pkgname=$_pkgname-git -pkgver=485 +pkgver=1.1.1.r27.g81ef2a9 pkgrel=1 -epoch=1 pkgdesc='Pandora Internet Radio player for GNOME' arch=('any') -url="http://pithos.github.io/" +url="https://pithos.github.io/" license=('GPL3') depends=('python>=3.5' 'gtk3' 'python-gobject' 'gst-plugins-good' 'gst-plugins-bad' 'gst-plugins-base' - 'python-setuptools' 'python-cairo') + 'python-cairo') optdepends=('libkeybinder3: for media keys plugin' 'gst-plugins-ugly: MP3 playback support' 'libappindicator-gtk3: Unity indicator applet support' @@ -21,7 +20,7 @@ optdepends=('libkeybinder3: for media keys plugin' 'python-pylast: Last.fm scrobbling support' 'libnotify: Notification support' 'python-dbus: MPRIS/Screensaver Pause/Gnome mediakeys support') -makedepends=('git') +makedepends=('git' 'automake' 'autoconf' 'intltool') provides=("$_pkgname") conflicts=("$_pkgname-bzr" "$_pkgname") install="$pkgname.install" @@ -32,10 +31,16 @@ source=("$pkgname.install" "git+https://github.com/pithos/pithos.git") pkgver() { cd "$srcdir/$_pkgname" - git rev-list HEAD --count + git describe --tags | sed 's/-/.r/; s/-/./' +} + +build() { + cd "$srcdir/$_pkgname" + ./autogen.sh --prefix=/usr + make } package() { cd "$srcdir/$_pkgname" - python setup.py install --optimize=1 --prefix=/usr --root="${pkgdir}/" + DESTDIR="$pkgdir" make install } |