archrelease: copy trunk to extra-x86_64
[arch-packages.git] / openmp / trunk / PKGBUILD
blob0cec3831b110636a99af7188c5d8d02f3f89daf9
1 # Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
3 pkgname=openmp
4 pkgver=13.0.1
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=('glibc' 'libelf' 'libffi')
11 makedepends=('llvm' 'clang' 'cmake' 'ninja')
12 options=('!lto') # https://bugzilla.redhat.com/show_bug.cgi?id=1988155
13 _source_base=https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver
14 source=($_source_base/$pkgname-$pkgver.src.tar.xz{,.sig})
15 sha256sums=('6b79261371616c31fea18cd3ee1797c79ee38bcaf8417676d4fa366a24c96b4f'
16             'SKIP')
17 validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg <hans@chromium.org>
18 validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <tstellar@redhat.com>
20 prepare() {
21         cd "$pkgname-$pkgver.src"
22         mkdir build
25 build() {
26         cd "$pkgname-$pkgver.src/build"
28   cmake .. -G Ninja \
29     -DCMAKE_BUILD_TYPE=Release \
30     -DCMAKE_INSTALL_PREFIX=/usr \
31     -DLIBOMP_INSTALL_ALIASES=OFF
32   ninja
35 package() {
36   cd "$pkgname-$pkgver.src/build"
38   DESTDIR="$pkgdir" ninja install
39   install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
41   rm "$pkgdir/usr/lib/libarcher_static.a"
44 # vim:set ts=2 sw=2 et: