diff options
author | bartus | 2020-02-28 20:42:37 +0100 |
---|---|---|
committer | bartus | 2020-02-28 20:42:37 +0100 |
commit | 1ec8a475a91d0cb44a9598cffd2b902fe8be8a04 (patch) | |
tree | 67c7b90b4f6c9b7a5076d69d59d73f5e092384e0 | |
parent | 05f0b2672424c07de785fc31f31474c5327e60b5 (diff) | |
download | aur-1ec8a475a91d0cb44a9598cffd2b902fe8be8a04.tar.gz |
Update pkgver() to work without prepare()
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 8 |
2 files changed, 4 insertions, 6 deletions
@@ -1,6 +1,6 @@ pkgbase = babl-git pkgdesc = Dynamic, any to any, pixel format translation library. - pkgver = 0.1.75.r1613.c0219d3 + pkgver = 0.1.75.r1615.34aef49 pkgrel = 1 url = https://www.gegl.org/babl arch = x86_64 @@ -8,7 +8,7 @@ _pkgname=babl pkgname="${_pkgname}-git" -pkgver=0.1.75.r1613.c0219d3 +pkgver=0.1.75.r1615.34aef49 pkgrel=1 pkgdesc="Dynamic, any to any, pixel format translation library." arch=('x86_64') @@ -36,10 +36,8 @@ prepare() { pkgver() { cd ${srcdir}/${_pkgname} - printf "%d.%d.%d.r%s.%s" \ - $(grep -Po '^#define BABL_MAJOR_VERSION \K[0-9]*$' ${srcdir}/build/config.h) \ - $(grep -Po '^#define BABL_MINOR_VERSION \K[0-9]*$' ${srcdir}/build/config.h) \ - $(grep -Po '^#define BABL_MICRO_VERSION \K[0-9]*$' ${srcdir}/build/config.h) \ + printf "%s.r%s.%s" \ + $(grep -ozP "(?s)^project\('babl'.*?version: *'\K[\d.]*" meson.build) \ $(git rev-list --count HEAD) \ $(git rev-parse --short HEAD) } |