1 # Maintainer: Laurent Carlier <lordheavym@gmail.com>
6 pkgdesc="Library requirements of the OpenCL C programming language"
8 url="https://libclc.llvm.org/"
10 makedepends=('clang' 'llvm' 'cmake' 'ninja' 'python' 'spirv-llvm-translator')
11 _source_base=https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver
12 source=($_source_base/$pkgname-$pkgver.src.tar.xz{,.sig})
13 sha256sums=('7dc0131f05842a8ed29997362de260c82e188aa0639e482683ece8b47cca21b2'
15 validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg <hans@chromium.org>
16 validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <tstellar@redhat.com>
19 cd $pkgname-$pkgver.src
24 cd $pkgname-$pkgver.src/build
27 -DCMAKE_BUILD_TYPE=Release \
28 -DCMAKE_INSTALL_PREFIX=/usr
33 cd $pkgname-$pkgver.src/build
35 DESTDIR="$pkgdir" ninja install
36 install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"