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/libclc-$pkgver.src.tar.xz{,.sig})
13 sha256sums=('35731fea7be224f21acf5bf3cd9f0ed058bf4ada5eceaf7f10ee96e139bd3389'
15 validpgpkeys=('474E22316ABF4785A88C6E8EA2C794A986419D8A' # Tom Stellard <tstellar@redhat.com>
16 'D574BD5D1D0E98895E3BF90044F2485E45D59042') # Tobias Hieta <tobias@hieta.se>
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"