summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD7
2 files changed, 8 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index ad03bf4d4b0..81f9f3caf86 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = mps-youtube-git
- pkgdesc = Terminal based YouTube jukebox with playlist management - develop version
- pkgver = 0.2.8.develop
+ pkgdesc = Terminal based YouTube jukebox with playlist management - git develop release
+ pkgver = 0.2.8.r100.g881dfe7
pkgrel = 1
url = https://github.com/mps-youtube/mps-youtube
install = mps-youtube-git.install
diff --git a/PKGBUILD b/PKGBUILD
index 9a4f0c2247b..b6090b50dd2 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,5 +1,5 @@
pkgname=mps-youtube-git
-pkgver=0.2.8.develop
+pkgver=0.2.8.r100.g881dfe7
pkgrel=1
pkgdesc="Terminal based YouTube jukebox with playlist management - git develop release"
@@ -21,6 +21,11 @@ source=('git+https://github.com/mps-youtube/mps-youtube.git')
md5sums=('SKIP')
+pkgver() {
+ cd mps-youtube
+ git describe --tags --long | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
+}
+
package() {
cd mps-youtube
python setup.py install --root="$pkgdir" --optimize=1