summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Cousin2018-07-18 07:20:50 +0200
committerMarc Cousin2018-07-18 07:20:50 +0200
commit661b60687b4fc6f07689c805b85badc1e085728d (patch)
tree14f709f02c4fa6821c5a65e54fb990e77980b1c9
parentd85eae3c2cb736c7eff118e651a352cbcb487055 (diff)
downloadaur-661b60687b4fc6f07689c805b85badc1e085728d.tar.gz
Make version number correct
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD6
2 files changed, 3 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 7091e66c5a52..bab2bce18ac7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,6 @@
-# Generated by mksrcinfo v8
-# Mon Mar 19 07:18:26 UTC 2018
pkgbase = hypopg-git
pkgdesc = Hypothetical indexes for PostgreSQL... ask the optimizer if this hypothetical index would help
- pkgver = 0de9755
+ pkgver = 1.1.2.r0.gd7ef06f
pkgrel = 1
url = https://github.com/HypoPG/hypopg
install = hypopg-git.install
diff --git a/PKGBUILD b/PKGBUILD
index 61a4fe49feb6..302ee01d7d23 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Marco44 (Marc Cousin) <cousinmarc at gmail dot com>
pkgname=hypopg-git
_gitname=hypopg
-pkgver=0de9755
+pkgver=1.1.2.r0.gd7ef06f
pkgrel=1
pkgdesc="Hypothetical indexes for PostgreSQL... ask the optimizer if this hypothetical index would help"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
@@ -17,9 +17,7 @@ install='hypopg-git.install'
pkgver() {
cd $_gitname
- tag=`git tag | grep REL | tail -1`
- commit=`git log --format="%h" -n 1`
- echo "$tag_$commit"
+ git describe --long --tags | sed 's/REL//;s/_/./g;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {