diff options
author | Atle Solbakken | 2020-09-07 23:10:31 +0200 |
---|---|---|
committer | Atle Solbakken | 2020-09-07 23:10:31 +0200 |
commit | 328a727275e937fdf5ce89d8bd4e54daf7d37b3f (patch) | |
tree | 80076ab82bab7f70b9317d555de1997a98ca638a | |
parent | 0f65dc937522fc54de68776bf8d923aee234ff11 (diff) | |
download | aur-328a727275e937fdf5ce89d8bd4e54daf7d37b3f.tar.gz |
Add pkgver()-function and retrieve specific release from git.
-rw-r--r-- | .SRCINFO | 6 | ||||
-rw-r--r-- | PKGBUILD | 11 |
2 files changed, 11 insertions, 6 deletions
@@ -1,7 +1,7 @@ pkgbase = rrr pkgdesc = Read Route Record is a messaging daemon supporting HTTP, MQTT, TCP, UDP +++ - pkgver = 1.12 - pkgrel = 1 + pkgver = 1.12.1.r0.gd4ebfce + pkgrel = 0 url = https://www.github.com/atlesn/rrr arch = i686 arch = arm64 @@ -13,7 +13,7 @@ pkgbase = rrr depends = mariadb-clients optdepends = systemd: systemd daemon support provides = rrr - source = git+https://github.com/atlesn/rrr.git#branch=archlinux + source = git+https://github.com/atlesn/rrr.git#tag=v1.12-1 md5sums = SKIP pkgname = rrr @@ -1,7 +1,7 @@ # Maintainer: Atle Solbakken <atle@goliathdns.no> pkgname="rrr" -pkgver=1.12 -pkgrel=1 +pkgver=1.12.1.r0.gd4ebfce +pkgrel=0 pkgdesc="Read Route Record is a messaging daemon supporting HTTP, MQTT, TCP, UDP +++" arch=('i686' 'arm64' 'x86_64') url="https://www.github.com/atlesn/rrr" @@ -10,9 +10,14 @@ depends=('python3' 'perl' 'mariadb-clients') optdepends=('systemd: systemd daemon support') makedepends=('git') provides=('rrr') -source=("git+https://github.com/atlesn/$pkgname.git#branch=archlinux") +source=("git+https://github.com/atlesn/$pkgname.git#tag=v1.12-1") md5sums=('SKIP') +pkgver() { + cd "${srcdir}/${pkgname}" + git describe --tags --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//' +} + prepare() { cd "${srcdir}/${pkgname}" } |