summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam2021-06-18 19:26:03 -0700
committerSam2021-06-18 19:26:03 -0700
commitdaaf35fa30fe07f63e83b821e7bf6938f3ead2ed (patch)
tree93a836a62feb7d42c069e2ebc6aa5eae96548c50
parent553526e31e3f4b0b68fbddd1f05177714683ac05 (diff)
downloadaur-daaf35fa30fe07f63e83b821e7bf6938f3ead2ed.tar.gz
upgpkg: containers-common-git 0.40.2_dev.r1140.ga60e2d0-1
fixing revision numbering
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD6
2 files changed, 4 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5afc37d20e8..fed2bf9ff89 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = containers-common-git
pkgdesc = Configuration files and manpages for containers (git)
- pkgver = 0.40.1_dev.r0.g3c56250
+ pkgver = 0.40.2_dev.r1140.ga60e2d0
pkgrel = 1
url = https://github.com/containers/common.git
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 6b2734e6073..df9dbce8c1c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=containers-common-git
_pkgname=containers-common
_gitpkgname=common
-pkgver=0.40.1_dev.r0.g3c56250
+pkgver=0.40.2_dev.r1140.ga60e2d0
pkgrel=1
pkgdesc="Configuration files and manpages for containers (git)"
arch=('any')
@@ -39,9 +39,9 @@ sha256sums=('SKIP'
pkgver() {
cd "$srcdir/$_gitpkgname" || exit 1
- commit=$(git rev-parse --short HEAD)
+ commit=$(printf "r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)")
ver=$(grep const version/version.go | sed -re 's|.*"(.*)"$|\1|g')
- echo "${ver//-/_}.r0.g${commit}"
+ echo "${ver//-/_}.${commit}"
}
prepare() {