[arch-commits] Commit in openmp/repos (staging-x86_64 staging-x86_64/PKGBUILD)
Evangelos Foutras
foutrelis at archlinux.org
Wed Apr 8 22:59:27 UTC 2020
Date: Wednesday, April 8, 2020 @ 22:59:27
Author: foutrelis
Revision: 379878
archrelease: copy trunk to staging-x86_64
Added:
openmp/repos/staging-x86_64/
openmp/repos/staging-x86_64/PKGBUILD
(from rev 379877, openmp/trunk/PKGBUILD)
----------+
PKGBUILD | 47 +++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 47 insertions(+)
Copied: openmp/repos/staging-x86_64/PKGBUILD (from rev 379877, openmp/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-04-08 22:59:27 UTC (rev 379878)
@@ -0,0 +1,47 @@
+# Maintainer: Evangelos Foutras <evangelos at foutrelis.com>
+
+pkgname=openmp
+pkgver=9.0.1
+pkgrel=3
+pkgdesc="LLVM OpenMP Runtime Library"
+arch=('x86_64')
+url="https://openmp.llvm.org/"
+license=('custom:Apache 2.0 with LLVM Exception')
+depends=('glibc' 'libelf' 'libffi')
+makedepends=('cmake' 'ninja')
+
+_source_base=https://releases.llvm.org/$pkgver
+if [[ ${pkgver##*.} != 0 ]]; then
+ _source_base=https://github.com/llvm/llvm-project/releases/download/llvmorg-$pkgver
+fi
+
+source=($_source_base/$pkgname-$pkgver.src.tar.xz{,.sig})
+sha256sums=('5c94060f846f965698574d9ce22975c0e9f04c9b14088c3af5f03870af75cace'
+ 'SKIP')
+validpgpkeys+=('B6C8F98282B944E3B0D5C2530FC3042E345AD05D') # Hans Wennborg <hans at chromium.org>
+validpgpkeys+=('474E22316ABF4785A88C6E8EA2C794A986419D8A') # Tom Stellard <tstellar at redhat.com>
+
+prepare() {
+ cd "$pkgname-$pkgver.src"
+ mkdir build
+}
+
+build() {
+ cd "$pkgname-$pkgver.src/build"
+
+ cmake .. -G Ninja \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DLIBOMP_INSTALL_ALIASES=OFF
+ ninja
+}
+
+package() {
+ cd "$pkgname-$pkgver.src/build"
+
+ DESTDIR="$pkgdir" ninja install
+ install -Dm644 ../LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list