summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Lange2019-10-24 19:45:15 +0200
committerThomas Lange2019-10-24 19:45:15 +0200
commitb540b13edce1f2974a59316df476fd35cd7509d8 (patch)
tree89282fde319d4bd7996275768a141658892393ce
parentffa09769da8f0685c5e25a13f6948272e91b45f6 (diff)
downloadaur-b540b13edce1f2974a59316df476fd35cd7509d8.tar.gz
Use more sensible pkgver() function
Suggested by katt.
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD6
2 files changed, 5 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7c95f8d7bc0..69a4903b100 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = audacious-git
pkgdesc = Lightweight, advanced audio player focused on audio quality
- pkgver = 2019.10.24
+ pkgver = 4.0.r8945.d17897dc4
pkgrel = 1
url = https://audacious-media-player.org/
install = audacious.install
diff --git a/PKGBUILD b/PKGBUILD
index ab15d70968f..3be33c306d9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -9,7 +9,8 @@
_pkgname=audacious
pkgname="$_pkgname-git"
-pkgver=2019.10.24
+_pkgver=4.0
+pkgver=4.0.r8945.d17897dc4
pkgrel=1
pkgdesc="Lightweight, advanced audio player focused on audio quality"
arch=('i686' 'x86_64')
@@ -25,7 +26,8 @@ source=("git://github.com/audacious-media-player/$_pkgname.git")
sha256sums=('SKIP')
pkgver() {
- date +%Y.%m.%d
+ cd "$srcdir/$_pkgname"
+ printf "$_pkgver.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {