summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomislav Ivek2020-02-14 18:56:23 +0100
committerTomislav Ivek2020-02-14 18:56:23 +0100
commitdb4c224a0489fb15a11a7dead34c5c2727b64853 (patch)
tree379d7d1a40b57405d90d3d1040090943ce85f336
parent4a14d10499dc6436ce6d36bd512fe7e4a66407f1 (diff)
downloadaur-db4c224a0489fb15a11a7dead34c5c2727b64853.tar.gz
fix versioning to match python package
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD4
2 files changed, 3 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 574cda4d2d2..70f045a6efc 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = conan-git
pkgdesc = A distributed, open source, C/C++ package manager.
- pkgver = 1.22.0.r24.g4ea97afc
+ pkgver = 1.23.0.dev.r4185.4ea97afca
pkgrel = 1
url = https://conan.io
arch = any
diff --git a/PKGBUILD b/PKGBUILD
index 4230fbbb2d8..4942cbd3475 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Tomislav Ivek <tomislav.ivek@gmail.com>
pkgname=conan-git
-pkgver=1.22.0.r24.g4ea97afc
+pkgver=1.23.0.dev.r4185.4ea97afca
pkgrel=1
pkgdesc="A distributed, open source, C/C++ package manager."
arch=('any')
@@ -35,7 +35,7 @@ md5sums=('SKIP'
pkgver() {
cd "$pkgname"
- git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+ printf "%s.r%s.%s" "$(grep -oP "__version__ = '\K([0-9a-z.-]+)(?=')" conans/__init__.py | sed 's/\([^-]*-g\)/r\1/;s/-/./g')" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {