summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrainDamage2019-11-06 14:53:04 +0100
committerBrainDamage2019-11-06 14:53:04 +0100
commit5e059f6fa1a43ef5e7b9e30b66fb6436a85183a0 (patch)
tree5bb1b7d7df7f92de0479c8e941fabd750bbacf0b
parent8431d026565cf665db36821a029e32f8b3b091ee (diff)
downloadaur-5e059f6fa1a43ef5e7b9e30b66fb6436a85183a0.tar.gz
fixed pkgver function to be compliant to guidelines ( thanks to Terence )
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD5
2 files changed, 3 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 0283bb35b18..19d4f5416fe 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = mididings-git
pkgdesc = A MIDI router and processor based on Python, supporting ALSA and JACK MIDI (python3 patched)
- pkgver = 20191029.bbec99a
+ pkgver = r706.bbec99a
pkgrel = 1
url = http://das.nasophon.de/mididings/
arch = i686
diff --git a/PKGBUILD b/PKGBUILD
index 331ac7bf6fd..e3b9b2a1ffb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname_=mididings
pkgname=$pkgname_-git
-pkgver=20191029.bbec99a
+pkgver=r706.bbec99a
pkgrel=1
pkgdesc="A MIDI router and processor based on Python, supporting ALSA and JACK MIDI (python3 patched)"
arch=('i686' 'x86_64')
@@ -24,8 +24,7 @@ md5sums=('SKIP')
pkgver() {
cd "$srcdir/$pkgname"
- # uuuugly code to use date + current git hash in lieu of absent release tag
- echo "$(date +%Y%m%d).$(git describe --always)"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {