diff options
author | Marc Cousin | 2018-07-18 07:18:12 +0200 |
---|---|---|
committer | Marc Cousin | 2018-07-18 07:18:12 +0200 |
commit | 35fd936d3de3f988c250d3bfbe3cd2e22aedea2f (patch) | |
tree | f47a76c24c0fd887e2a3bb9b8c20bee24f3e61f8 | |
parent | 5a451a9c7658b20843de2319a9b8ec4e75f7f751 (diff) | |
download | aur-35fd936d3de3f988c250d3bfbe3cd2e22aedea2f.tar.gz |
Make version numbering correct
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 4 insertions, 8 deletions
@@ -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 @@ -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() { |