archrelease: copy trunk to extra-x86_64
[arch-packages.git] / libclc / trunk / PKGBUILD
blob66cb7e1a5e905dae17bfff778f17186102042318
1 # Maintainer: Laurent Carlier <lordheavym@gmail.com>
3 pkgname=libclc
4 pkgver=13.0.0
5 pkgrel=1
6 pkgdesc="Library requirements of the OpenCL C programming language"
7 arch=('any')
8 url="https://libclc.llvm.org/"
9 license=('MIT')
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'
14             'SKIP')
15 validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg <hans@chromium.org>
16 validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <tstellar@redhat.com>
18 prepare() {
19   cd $pkgname-$pkgver.src
20   mkdir build
23 build() {
24   cd $pkgname-$pkgver.src/build
26   cmake .. -G Ninja \
27     -DCMAKE_BUILD_TYPE=Release \
28     -DCMAKE_INSTALL_PREFIX=/usr
29   ninja
32 package() {
33   cd $pkgname-$pkgver.src/build
35   DESTDIR="$pkgdir" ninja install
36   install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"