diff options
author | Luis Martinez | 2021-05-18 13:11:16 -0500 |
---|---|---|
committer | Luis Martinez | 2021-05-18 13:11:16 -0500 |
commit | 50fa9bd9a686d273f9723794c2f0d35f92b1e232 (patch) | |
tree | ffe4b8e203a617794662c848ea70c36b52e283c4 /PKGBUILD | |
parent | 38bdc37d7544cbb74f948297cf98f512ff9cdc90 (diff) | |
download | aur-50fa9bd9a686d273f9723794c2f0d35f92b1e232.tar.gz |
add pkgver() function
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -1,7 +1,8 @@ -# Maintainer: Kuan-Yen Chou <kuanyenchou at gmail dot com> +# Contributor: Luis Martinez <luis dot martinez at tuta dot io> +# Contributor: Kuan-Yen Chou <kuanyenchou at gmail dot com> pkgname=cpp-coveralls-git -pkgver=20181011 +pkgver=0.4.2.r4.g800231f pkgrel=1 pkgdesc='Upload gcov results to coveralls.io' arch=('x86_64') @@ -15,6 +16,11 @@ makedepends=('python-setuptools' 'git') source=('git+https://github.com/eddyxu/cpp-coveralls.git') sha256sums=('SKIP') +pkgver() { + cd "${srcdir}/cpp-coveralls" + git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./' +} + build() { cd "${srcdir}/cpp-coveralls" python setup.py build |