archrelease: copy trunk to extra-x86_64
[arch-packages.git] / openmp / trunk / PKGBUILD
blobdf87032035c129b735a42be1ff056c62e94576de
1 # Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
3 pkgname=openmp
4 pkgver=13.0.0
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 _source_base=https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver
13 source=($_source_base/$pkgname-$pkgver.src.tar.xz{,.sig})
14 sha256sums=('4930ae7a1829a53b698255c2c6b6ee977cc364b37450c14ee458793c0d5e493c'
15             'SKIP')
16 validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg <hans@chromium.org>
17 validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <tstellar@redhat.com>
19 prepare() {
20         cd "$pkgname-$pkgver.src"
21         mkdir build
24 build() {
25         cd "$pkgname-$pkgver.src/build"
27   cmake .. -G Ninja \
28     -DCMAKE_BUILD_TYPE=Release \
29     -DCMAKE_INSTALL_PREFIX=/usr \
30     -DLIBOMP_INSTALL_ALIASES=OFF
31   ninja
34 package() {
35   cd "$pkgname-$pkgver.src/build"
37   DESTDIR="$pkgdir" ninja install
38   install -Dm644 ../LICENSE.TXT "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
40   rm "$pkgdir/usr/lib/libarcher_static.a"
43 # vim:set ts=2 sw=2 et: