1 # Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
6 pkgdesc="LLVM OpenMP Runtime Library"
8 url="https://openmp.llvm.org/"
9 license=('custom:Apache 2.0 with LLVM Exception')
10 depends=('llvm-libs' 'libelf' 'libffi')
11 makedepends=('llvm' 'clang' 'cmake' 'ninja')
12 optdepends=('cuda: offloading to NVIDIA GPUs'
13 'hsa-rocr: offloading to AMD GPUs')
14 options=('!lto') # https://bugzilla.redhat.com/show_bug.cgi?id=1988155
15 _source_base=https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver
16 source=($_source_base/openmp-$pkgver.src.tar.xz{,.sig}
17 $_source_base/cmake-$pkgver.src.tar.xz{,.sig})
18 sha256sums=('3f168d38e7a37b928dcb94b33ce947f75d81eef6fa6a4f9d16b6dc5511c07358'
20 '8986f29b634fdaa9862eedda78513969fe9788301c9f2d938f4c10a3e7a3e7ea'
22 validpgpkeys=('474E22316ABF4785A88C6E8EA2C794A986419D8A' # Tom Stellard <tstellar@redhat.com>
23 'D574BD5D1D0E98895E3BF90044F2485E45D59042') # Tobias Hieta <tobias@hieta.se>
26 mv cmake{-$pkgver.src,}
32 cd openmp-$pkgver.src/build
36 -DCMAKE_BUILD_TYPE=Release
37 -DCMAKE_INSTALL_PREFIX=/usr
38 -DLIBOMP_INSTALL_ALIASES=OFF
40 cmake .. "${cmake_args[@]}"
45 cd openmp-$pkgver.src/build
47 DESTDIR="$pkgdir" ninja install
48 install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
50 rm "$pkgdir/usr/lib/libarcher_static.a"
53 # vim:set ts=2 sw=2 et: