diff options
author | satcom886 | 2020-06-29 23:08:27 +0200 |
---|---|---|
committer | satcom886 | 2020-06-29 23:08:27 +0200 |
commit | 76c94be3f5833e7f4615b83b33adee10a81800e2 (patch) | |
tree | d35fd3c8a5079e99744fd069a7279cb9606b435b | |
parent | 9df512432c3c811ba1b4e4fde25d2066135568a0 (diff) | |
download | aur-76c94be3f5833e7f4615b83b33adee10a81800e2.tar.gz |
Changed to git
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 21 |
2 files changed, 17 insertions, 12 deletions
@@ -1,15 +1,15 @@ pkgbase = vc4clstdlib-git pkgdesc = VC4CL implementation of the OpenCL standard-library and is required to build the VC4C compiler - pkgver = 1 - pkgrel = 2 + pkgver = 0 + pkgrel = 3 url = https://github.com/doe300/VC4CLStdLib arch = any license = MIT - makedepends = wget + makedepends = git makedepends = make provides = vc4clstdlib provides = vc4-libraries - source = https://github.com/doe300/VC4CLStdLib/archive/master.tar.gz + source = VC4CLStdLib::git+https://github.com/doe300/VC4CLStdLib md5sums = SKIP pkgname = vc4clstdlib-git @@ -1,28 +1,33 @@ # Maintainer: satcom886 <rostik.medved@gmail.com> pkgname=vc4clstdlib-git -pkgver=1 -pkgrel=2 +pkgver=0 +pkgrel=3 pkgdesc="VC4CL implementation of the OpenCL standard-library and is required to build the VC4C compiler" arch=('any') url="https://github.com/doe300/VC4CLStdLib" license=('MIT') groups=() depends=() -makedepends=('wget' 'make') +makedepends=('git' 'make') optdepends=() provides=('vc4clstdlib' 'vc4-libraries') -source=("https://github.com/doe300/VC4CLStdLib/archive/master.tar.gz") +source=("VC4CLStdLib::git+https://github.com/doe300/VC4CLStdLib") md5sums=('SKIP') +pkgver() { + cd "$srcdir/VC4CLStdLib" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + build() { - mkdir -p $srcdir/VC4CLStdLib-master/build - cd $srcdir/VC4CLStdLib-master/build - cmake "$srcdir/VC4CLStdLib-master" + mkdir -p $srcdir/VC4CLStdLib/build + cd $srcdir/VC4CLStdLib/build + cmake "$srcdir/VC4CLStdLib" make } package() { - cd $srcdir/VC4CLStdLib-master/build + cd $srcdir/VC4CLStdLib/build make DESTDIR="$pkgdir"/ install } |