diff options
author | satcom886 | 2020-06-30 00:10:39 +0200 |
---|---|---|
committer | satcom886 | 2020-06-30 00:10:39 +0200 |
commit | 1d7a81399ec34c839817513ae2aefe7ad63a8fd0 (patch) | |
tree | 4146fc394a610b2c9520a8316d6d479914564c77 | |
parent | b5b1d12301490ad01f3a7d5cc3e312aaba5dec5d (diff) | |
download | aur-1d7a81399ec34c839817513ae2aefe7ad63a8fd0.tar.gz |
Added pkgver()
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 7 |
2 files changed, 7 insertions, 2 deletions
@@ -1,7 +1,7 @@ pkgbase = vc4c-git pkgdesc = Compiler for the VC4CL OpenCL-implementation pkgver = 0 - pkgrel = 7 + pkgrel = 8 url = https://github.com/doe300/VC4C arch = any license = MIT @@ -2,7 +2,7 @@ pkgname=vc4c-git pkgver=0 -pkgrel=7 +pkgrel=8 pkgdesc="Compiler for the VC4CL OpenCL-implementation" arch=('any') url="https://github.com/doe300/VC4C" @@ -15,6 +15,11 @@ provides=('vc4c' 'vc4-compiler' 'opencl-compiler') source=("VC4C::git+https://github.com/doe300/VC4C" "auto_dummy.patch") md5sums=('SKIP' 'e409cafcdc79aa53aef1484e53bd25e7') +pkgver() { + cd "$srcdir/VC4CLStdLib" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + prepare() { patch -R $srcdir/VC4C/src/ProcessUtil.cpp $srcdir/auto_dummy.patch } |