summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Cousin2018-07-18 07:19:41 +0200
committerMarc Cousin2018-07-18 07:19:41 +0200
commit5e4fd6e28c48b5fb17f88a8cd753df82c5f2421f (patch)
treeed49edd5bd81c8c35da7835f4a1f013939ac7def
parent40676aafd54c641ca94cc7dbabd3f85c47adb0e4 (diff)
downloadaur-5e4fd6e28c48b5fb17f88a8cd753df82c5f2421f.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 c4c5bd434d16..5ca1c42dba8b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,6 @@
-# Generated by mksrcinfo v8
-# Mon Mar 19 07:19:45 UTC 2018
pkgbase = pg_qualstats-git
pkgdesc = Capture qualifiers the same way as pg_stat_statement does for statements
- pkgver = dd6fbf4
+ pkgver = 1.0.4.r3.g7b8f418
pkgrel = 1
url = https://github.com/powa-team/pg_qualstats
install = pg_qualstats-git.install
diff --git a/PKGBUILD b/PKGBUILD
index c038a0852c6b..d4320da38470 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Marco44 (Marc Cousin) <cousinmarc at gmail dot com>
pkgname=pg_qualstats-git
_gitname=pg_qualstats
-pkgver=dd6fbf4
+pkgver=1.0.4.r3.g7b8f418
pkgrel=1
pkgdesc="Capture qualifiers the same way as pg_stat_statement does for statements"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
@@ -17,9 +17,7 @@ install='pg_qualstats-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() {