diff options
author | Kevin Majewski | 2021-03-26 01:43:04 +0100 |
---|---|---|
committer | Kevin Majewski | 2021-03-26 01:43:04 +0100 |
commit | fa212e9635ea89ce177edad6af175b03bc3fe1fc (patch) | |
tree | 73f3ba1e622523161eacef210042cff637526a5c | |
parent | c64fd0b9807cbeee2bb3d6e8f4c552f6bd342479 (diff) | |
download | aur-fa212e9635ea89ce177edad6af175b03bc3fe1fc.tar.gz |
Add pkgver function
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 7 |
2 files changed, 7 insertions, 2 deletions
@@ -1,6 +1,6 @@ pkgbase = gaphor-git pkgdesc = Gaphor is a UML and SysML modeling application written in Python - pkgver = 0.28.7 + pkgver = 2.3.0+10+g0f47a603 pkgrel = 1 url = https://github.com/gaphor/gaphor arch = any @@ -1,6 +1,6 @@ pkgname=gaphor-git _pkgname=gaphor -pkgver=0.28.7 +pkgver=2.3.0+10+g0f47a603 pkgrel=1 pkgdesc='Gaphor is a UML and SysML modeling application written in Python' arch=('any') @@ -13,6 +13,11 @@ conflicts=('gaphor') source=("git+https://github.com/gaphor/gaphor.git") b2sums=('SKIP') +pkgver() { + cd ${_pkgname} + git describe --tags | sed 's/-/+/g' +} + prepare() { cd ${_pkgname} # Avoid installing files directly under site-packages/ |