sbcl rebuild
[arch-packages.git] / openpmix / repos / extra-x86_64 / PKGBUILD
blob99c2f1667c110cbe5cce1ea2c0e025938313b9f2
1 # Maintainer: David Runge <dvzrv@archlinux.org>
3 _name=pmix
4 pkgname=openpmix
5 pkgver=4.2.1
6 pkgrel=1
7 pkgdesc="Extended version of the PMI standard"
8 arch=(x86_64)
9 url="https://github.com/openpmix/openpmix"
10 license=(BSD)
11 depends=(curl glibc hwloc jansson libevent zlib)
12 makedepends=(perl python)
13 provides=(libpmix.so pmix)
14 backup=(etc/$pkgname/pmix-mca-params.conf)
15 options=(debug)
16 source=($pkgname-$pkgver.tar.gz::https://github.com/$pkgname/$pkgname/archive/refs/tags/v$pkgver.tar.gz)
17 sha512sums=('2c658a1e46093ef4734da35786bffeb562e882cdcdfce5b31f43d810ab17e22d87c0ed30cd25ec20de16b2d11a7b0b1ad9da7ec9136ac87bd8b97fac65d74451')
18 b2sums=('d9458c3c234116c590f18e27e653be0b6171527e1f80e2c3744d8e6bcabc99d1ca701f6bb101e3c0add5b15e60c92b980b000246f339c544a83e21cacbf2ce5e')
20 prepare() {
21   cd $pkgname-$pkgver
22   ./autogen.pl
25 build() {
26   cd $pkgname-$pkgver
27   ./configure \
28     --prefix=/usr \
29     --sysconfdir=/etc/$pkgname \
30     --with-curl \
31     --with-jansson
32   # prevent excessive overlinking due to libtool
33   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
34   make V=1
37 check() {
38   make -k check -C $pkgname-$pkgver
41 package() {
42   depends+=(libcurl.so)
44   make DESTDIR="$pkgdir" install -C $pkgname-$pkgver
45   install -vDm 644 $pkgname-$pkgver/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"