summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Cousin2018-07-18 07:18:12 +0200
committerMarc Cousin2018-07-18 07:18:12 +0200
commit35fd936d3de3f988c250d3bfbe3cd2e22aedea2f (patch)
treef47a76c24c0fd887e2a3bb9b8c20bee24f3e61f8
parent5a451a9c7658b20843de2319a9b8ec4e75f7f751 (diff)
downloadaur-35fd936d3de3f988c250d3bfbe3cd2e22aedea2f.tar.gz
Make version numbering correct
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD8
2 files changed, 4 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 87a061598252..725285f93f7b 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,6 @@
-# Generated by mksrcinfo v8
-# Mon Mar 19 07:20:41 UTC 2018
pkgbase = pg_stat_kcache-git
pkgdesc = Get kernel statistics for sessions in PostgreSQL. Be able to measure the real hit ratio !
- pkgver = 7740021
+ pkgver = 2.1.0.r1.g6bedab2
pkgrel = 1
url = https://github.com/powa-team/pg_stat_kcache
install = pg_stat_kcache-git.install
diff --git a/PKGBUILD b/PKGBUILD
index 44a61ebfdefc..0da04295ef6c 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Marco44 (Marc Cousin) <cousinmarc at gmail dot com>
pkgname=pg_stat_kcache-git
_gitname=pg_stat_kcache
-pkgver=7740021
+pkgver=2.1.0.r1.g6bedab2
pkgrel=1
pkgdesc="Get kernel statistics for sessions in PostgreSQL. Be able to measure the real hit ratio !"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
@@ -16,10 +16,8 @@ md5sums=('SKIP')
install='pg_stat_kcache-git.install'
pkgver() {
- cd $_gitname
- tag=`git tag | grep REL | tail -1`
- commit=`git log --format="%h" -n 1`
- echo "$tag_$commit"
+ cd $_gitname
+ git describe --long --tags | sed 's/REL//;s/_/./g;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {