summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 81f2297d75f0139f261ad2ee632cf2d229b7b7df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Maintainer: satcom886 <rostik.medved@gmail.com>

pkgname=vc4clstdlib-git
pkgver=r66.0ad47e3
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=('git' 'make')
optdepends=()
provides=('vc4clstdlib' 'vc4-libraries' 'khronos-ocl-icd')
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/build"
	cd "$srcdir/VC4CLStdLib/build"
	cmake "$srcdir/VC4CLStdLib"
	make
}

package() {
	cd "$srcdir/VC4CLStdLib/build"
	make DESTDIR="$pkgdir/" install
}