archrelease: copy trunk to extra-x86_64
[arch-packages.git] / openmp / trunk / PKGBUILD
blobcfad7dd13de0b13abbb0d159234449ddf1935d20
1 # Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
3 pkgname=openmp
4 pkgver=15.0.7
5 pkgrel=1
6 pkgdesc="LLVM OpenMP Runtime Library"
7 arch=('x86_64')
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'
19             'SKIP'
20             '8986f29b634fdaa9862eedda78513969fe9788301c9f2d938f4c10a3e7a3e7ea'
21             'SKIP')
22 validpgpkeys=('474E22316ABF4785A88C6E8EA2C794A986419D8A'  # Tom Stellard <tstellar@redhat.com>
23               'D574BD5D1D0E98895E3BF90044F2485E45D59042') # Tobias Hieta <tobias@hieta.se>
25 prepare() {
26   mv cmake{-$pkgver.src,}
27   cd openmp-$pkgver.src
28   mkdir build
31 build() {
32   cd openmp-$pkgver.src/build
34   local cmake_args=(
35     -G Ninja
36     -DCMAKE_BUILD_TYPE=Release
37     -DCMAKE_INSTALL_PREFIX=/usr
38     -DLIBOMP_INSTALL_ALIASES=OFF
39   )
40   cmake .. "${cmake_args[@]}"
41   ninja
44 package() {
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: