Date: Thursday, February 6, 2020 @ 15:53:04 Author: diabonas Revision: 563638
Add pkgver() function Modified: clevis/trunk/PKGBUILD ----------+ PKGBUILD | 5 +++++ 1 file changed, 5 insertions(+) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-02-06 14:17:50 UTC (rev 563637) +++ PKGBUILD 2020-02-06 15:53:04 UTC (rev 563638) @@ -23,6 +23,11 @@ sha512sums=('SKIP') validpgpkeys=('7CE2CB3D2AF59FE1EA22F551D0D219ED1F7E762C') # Sergio Correia <scorr...@redhat.com> +pkgver() { + cd "$pkgname" + git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + build() { cd "$pkgname" meson --prefix=/usr --libexecdir=/usr/lib --buildtype=plain build