summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorsvalo2019-08-20 09:20:10 +0200
committersvalo2019-08-20 09:20:10 +0200
commit3be64e4e893d58e821d5c8e42a4e31537526468b (patch)
tree6464cd8ebb1e4f508588b651466763a15da08ae4
parent4d23dd10ab1137ea338ce75645661d3e3c1ae30d (diff)
downloadaur-3be64e4e893d58e821d5c8e42a4e31537526468b.tar.gz
Changes pkgver function to adhere to VCS guidelines
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD6
2 files changed, 5 insertions, 5 deletions
diff --git a/.SRCINFO b/.SRCINFO
index e3b7adff6083..1c9763675251 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = certbot-dns-gandi-git
pkgdesc = gandi DNS authenticator plugin for certbot - GIT version
- pkgver = 20190716.9bc7d07
- pkgrel = 1
+ pkgver = 1.1.1.r3.g9bc7d07
+ pkgrel = 2
url = https://github.com/obynio/certbot-plugin-gandi.git
arch = any
license = MIT
diff --git a/PKGBUILD b/PKGBUILD
index 8f023e8e0b94..2930e73741a8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
# Maintainer: svalo <code@valo.space>
pkgname="certbot-dns-gandi-git"
pkgdesc="gandi DNS authenticator plugin for certbot - GIT version"
-pkgver=20190716.9bc7d07
-pkgrel=1
+pkgver=1.1.1.r3.g9bc7d07
+pkgrel=2
arch=("any")
url="https://github.com/obynio/certbot-plugin-gandi.git"
license=("MIT")
@@ -21,7 +21,7 @@ sha256sums=('SKIP'
pkgver() {
cd "${srcdir}/certbot-dns-gandi"
- git log -1 --date=short --format="%cd.%h" | tr -d '-'
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {