[arch-commits] Commit in (4 files)
David Runge
dvzrv at gemini.archlinux.org
Fri May 20 14:18:57 UTC 2022
Date: Friday, May 20, 2022 @ 14:18:57
Author: dvzrv
Revision: 446132
Add openpmix as new dependency for openmpi.
Added:
openpmix/
openpmix/repos/
openpmix/trunk/
openpmix/trunk/PKGBUILD
----------+
PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 49 insertions(+)
Added: openpmix/trunk/PKGBUILD
===================================================================
--- openpmix/trunk/PKGBUILD (rev 0)
+++ openpmix/trunk/PKGBUILD 2022-05-20 14:18:57 UTC (rev 446132)
@@ -0,0 +1,49 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+
+_name=pmix
+pkgname=openpmix
+pkgver=4.1.2
+pkgrel=1
+pkgdesc="Extended version of the PMI standard"
+arch=(x86_64)
+url="https://github.com/openpmix/openpmix"
+license=(BSD)
+depends=(curl glibc hwloc jansson libevent zlib)
+makedepends=(perl python)
+provides=(libpmix.so pmix)
+options=(debug)
+# unable to build from auto-generated tarball because build system is
+# configured to only generate required files when in a git repository:
+# https://github.com/openpmix/openpmix/issues/2599
+# source=($pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/refs/tags/v$pkgver.tar.gz)
+source=($pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/releases/download/v$pkgver/pmix-$pkgver.tar.gz)
+sha512sums=('aff153ab976f85355fd0241374c32fe86fc508c2921769e1e89ba1c4dc522a0e48c346eb6f9f1386c1e92261e348824b4d0062544069246b1a83037f47680d04')
+b2sums=('8595ee23927651770eebdd16a850ae4acdddc64065d9f64ab71399b0b0f04908407e4cc557a8ab8c79750f8e239572b809e2b8705ed264c900ac1dad16f7d68b')
+
+prepare() {
+ cd $_name-$pkgver
+ ./autogen.pl
+}
+
+build() {
+ cd $_name-$pkgver
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc/$pkgname \
+ --with-curl \
+ --with-jansson
+ # prevent excessive overlinking due to libtool
+ sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+ make V=1
+}
+
+check() {
+ make -k check -C $_name-$pkgver
+}
+
+package() {
+ depends+=(libcurl.so)
+
+ make DESTDIR="$pkgdir" install -C $_name-$pkgver
+ install -vDm 644 $_name-$pkgver/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
+}
More information about the arch-commits
mailing list