db-move: moved gnome-font-viewer from [testing] to [extra] (x86_64)
[arch-packages.git] / libclc / repos / extra-any / PKGBUILD
blobd9fd8a71703b73538b92e4f3deedf8309d909c9d
1 # Maintainer: Laurent Carlier <lordheavym@gmail.com>
3 pkgname=libclc
4 pkgver=15.0.7
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/libclc-$pkgver.src.tar.xz{,.sig})
13 sha256sums=('35731fea7be224f21acf5bf3cd9f0ed058bf4ada5eceaf7f10ee96e139bd3389'
14             'SKIP')
15 validpgpkeys=('474E22316ABF4785A88C6E8EA2C794A986419D8A'  # Tom Stellard <tstellar@redhat.com>
16               'D574BD5D1D0E98895E3BF90044F2485E45D59042') # Tobias Hieta <tobias@hieta.se>
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"