db-move: moved evolution from [testing] to [extra] (x86_64)
[arch-packages.git] / openpmix / trunk / PKGBUILD
blob4aa9c9566d840daf0b352cb524561e3c99b5fc8c
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 _name=pmix
4 pkgbase=openpmix
5 pkgname=(openpmix openpmix-docs)
6 pkgver=4.2.3
7 pkgrel=2
8 pkgdesc="Extended version of the PMI standard"
9 arch=(x86_64)
10 url="https://github.com/openpmix/openpmix"
11 license=(BSD)
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')
17 _pick() {
18   local p="$1" f d; shift
19   for f; do
20     d="$srcdir/$p/${f#$pkgdir/}"
21     mkdir -p "$(dirname "$d")"
22     mv "$f" "$d"
23     rmdir -p --ignore-fail-on-non-empty "$(dirname "$f")"
24   done
27 prepare() {
28   cd $_name-$pkgver
29   ./autogen.pl
32 build() {
33   local configure_options=(
34     --prefix=/usr
35     --sysconfdir=/etc/$pkgname
36   )
38   cd $_name-$pkgver
39   ./configure "${configure_options[@]}"
40   # prevent excessive overlinking due to libtool
41   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
42   make V=1
45 check() {
46   make -k check -C $_name-$pkgver
49 package_openpmix() {
50   depends=(
51     glibc
52     hwloc
53     libevent libevent_{core,pthreads}-2.1.so
54     zlib
55   )
56   optdepends=(
57     'openpmix-docs: for documentation'
58   )
59   provides=(libpmix.so pmix)
60   backup=(etc/$pkgname/pmix-mca-params.conf)
62   make DESTDIR="$pkgdir" install -C $_name-$pkgver
64   (
65     cd "$pkgdir"
66     _pick $pkgbase-docs usr/share/doc/
67   )
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/"