1 # Maintainer: David Runge <dvzrv@archlinux.org>
5 pkgname=(openpmix openpmix-docs)
8 pkgdesc="Extended version of the PMI standard"
10 url="https://github.com/openpmix/openpmix"
12 makedepends=(glibc hwloc perl libevent libevent python zlib)
13 source=($url/releases/download/v$pkgver/$_name-$pkgver.tar.gz)
14 sha512sums=('824c318848abf7a7c6dbb2a4cb06ec75d573b40c360798b6d35671135fbb63d42dba7c16c65a3261fb31ad902ff10d8256a387ead1e6afd65f65329b0b6a4dda')
15 b2sums=('b916c2dc3143d95309c8a1698a7477563d5faec1014a3cd4ae56cbbad74be3fc6310b28be87bd2e15bc759a6b9b281cf9e1e19449dbdbfe16d0c1b088d5d724d')
18 local p="$1" f d; shift
20 d="$srcdir/$p/${f#$pkgdir/}"
21 mkdir -p "$(dirname "$d")"
23 rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
33 local configure_options=(
35 --sysconfdir=/etc/$pkgname
39 ./configure "${configure_options[@]}"
40 # prevent excessive overlinking due to libtool
41 sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
46 make -k check -C $_name-$pkgver
53 libevent libevent_{core,pthreads}-2.1.so
57 'openpmix-docs: for documentation'
59 provides=(libpmix.so pmix)
60 backup=(etc/$pkgname/pmix-mca-params.conf)
62 make DESTDIR="$pkgdir" install -C $_name-$pkgver
66 _pick $pkgbase-docs usr/share/doc/
69 install -vDm 644 $_name-$pkgver/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
72 package_openpmix-docs() {
73 pkgdesc+=" - documentation"
75 mv -v $pkgname/* "$pkgdir/"