aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2013-10-20 20:22:41 +0200
committerJohannes Löthberg <johannes@kyriasis.com>2015-06-01 16:03:37 +0200
commit6d3f0ebe09406e8aeb7970b0ccaf371a2528ee8b (patch)
tree35097d04e5a12739d150c3ccb7b7edd3d47285cf
parent656475dd045b537e7cff491f9feae0fa916a289a (diff)
downloadpkgbuilds-6d3f0ebe09406e8aeb7970b0ccaf371a2528ee8b.tar.xz
beets-git: Better pkgver() function for cleaner version numbering
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD8
2 files changed, 6 insertions, 6 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 9886cc8..df1ecbb 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,8 +2,8 @@
# Mon Jun 1 14:57:58 UTC 2015
pkgbase = beets-git
pkgdesc = Flexible music library manager and tagger - git version
- pkgver = 20130614
- pkgrel = 2
+ pkgver = 1.3.1.r35.gc82cd29
+ pkgrel = 1
url = http://beets.radbox.org/
arch = any
license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index a1eacd8..5b42e58 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,8 +2,8 @@
# Contributor: Johannes Löthberg <johannes@kyriasis.com>
pkgname=beets-git
-pkgver=20130614
-pkgrel=2
+pkgver=1.3.1.r35.gc82cd29
+pkgrel=1
pkgdesc="Flexible music library manager and tagger - git version"
arch=('any')
url="http://beets.radbox.org/"
@@ -22,8 +22,8 @@ source=('git://github.com/sampsyo/beets.git')
md5sums=('SKIP')
pkgver() {
- cd ${srcdir}/beets
- echo $(date +%Y%m%d).$(git describe --always | sed 's|-|.|g')
+ cd "$srcdir"/beets
+ printf "%s" "$(git describe --tags --long | sed 's/^v//;s/-/-r/' | tr - .)"
}
build() {