diff options
author | bartus | 2021-01-25 16:18:49 +0100 |
---|---|---|
committer | bartus | 2021-01-25 16:18:49 +0100 |
commit | c1fc06d86f8019b1f4244e7d57b34951b9235183 (patch) | |
tree | c0c1effed70c4eb0120922c530cb78ee60084681 | |
parent | 89b63e3884468b884f62ded1748c2c82b8f2e8a6 (diff) | |
download | aur-c1fc06d86f8019b1f4244e7d57b34951b9235183.tar.gz |
Fix pkgver()
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -1,6 +1,6 @@ pkgbase = inkscape-git pkgdesc = An Open Source vector graphics editor, using SVG file format, from git master - pkgver = 1.1+devel.r900.gfa8525a7e1 + pkgver = 1.1.alpha.r9.g158a1947eb pkgrel = 1 epoch = 5 url = https://gitlab.com/inkscape @@ -3,7 +3,7 @@ # Co-Maintainer: bartus <arch-user-repo@bartus.33mail.com> pkgname=inkscape-git -pkgver=1.1+devel.r900.gfa8525a7e1 +pkgver=1.1.alpha.r9.g158a1947eb pkgrel=1 epoch=5 pkgdesc="An Open Source vector graphics editor, using SVG file format, from git master" @@ -38,7 +38,7 @@ prepare() { pkgver() { cd "$_gitname" - printf %s.%s+devel.r%s.g%s $(grep -oP -e "INKSCAPE_VERSION_(MAJOR|MINOR) +\K[0-9]+" CMakeLists.txt) $(git rev-list $(git describe --tag --abbrev=0)..HEAD --count) $(git log --pretty=format:'%h' -n 1) + git describe --long --tags| sed 's/^INKSCAPE_//;s/.*/\L&/;s/\([^-]*-g\)/r\1/;s/[-_]/./g' } build() { |