diff options
author | dec05eba <dec05eba@protonmail.com> | 2018-05-22 00:38:45 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-06 07:39:32 +0200 |
commit | fccb86237d0048fd0a91a3a08d52264f3b7850c0 (patch) | |
tree | ca34d9e4f60b9646fd0b5c7aa476251308f2e59a /distribute/arch_linux | |
parent | 3cf071b9efdc683e0c49bb5895110010710882f7 (diff) |
Add pkgver to pkgbuild
Diffstat (limited to 'distribute/arch_linux')
-rw-r--r-- | distribute/arch_linux/PKGBUILD | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/distribute/arch_linux/PKGBUILD b/distribute/arch_linux/PKGBUILD index 79bfea8..3e35f5b 100644 --- a/distribute/arch_linux/PKGBUILD +++ b/distribute/arch_linux/PKGBUILD @@ -1,6 +1,6 @@ # Maintainer: dec05eba <dec05eba at protonmail.com> pkgname=sibs-git -pkgver=0.1.2rf3d7.5272351f +pkgver=0.1.4.r64.g57683e5 pkgrel=1 pkgdesc='Simple build system for native languages' arch=('i686' 'x86_64') @@ -19,6 +19,11 @@ build() { make } +pkgver() { + cd "$srcdir" + git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + check() { cd "$srcdir/$provides" ./cmake/sibs test |