aboutsummaryrefslogtreecommitdiffstats
path: root/testing/opensm/APKBUILD
blob: 124b6a9d0c427fb099aea1bf5b26b9546a088a4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Contributor: Jann - Ove Risvik <jann.ove@usaklig.com>
# Maintainer:
pkgname=opensm
pkgver=3.3.20
pkgrel=2
pkgdesc="OpenSM InfiniBand subnet manager"
url="https://github.com/linux-rdma/opensm"
arch="x86 x86_64 ppc64le"
license="GPL-2.0-only OR BSD-2-Clause"
depends_dev="libibumad-dev"
makedepends="$depends_dev bison flex"
subpackages="$pkgname-dev $pkgname-doc"
source="https://www.openfabrics.org/downloads/management/$pkgname-$pkgver.tar.gz
0001-musl-fixes.patch"

prepare() {
	update_config_sub
	default_prepare
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

md5sums="ed615b4681e94ef2e13a5de773ab89a3  opensm-3.3.20.tar.gz
cbe036cdfddfd37f6381fe7269498d0e  0001-musl-fixes.patch"
sha256sums="e17d7446abb99809b0975ea894a9f0ce56a65c5eac1185a857c8bf7978785a98  opensm-3.3.20.tar.gz
a507a4cc20982e75e674da5ba43e5a56420153338f1ffd9a6f5328488acfe8b2  0001-musl-fixes.patch"
sha512sums="ea76ae8088c949d6d0d7524920cb333d0981af34bdbe2fa2bde30f13b58dcaeb842989621990a09dfd02db56c180a70109a00e5a45aba800d593b7ee95e4b9b7  opensm-3.3.20.tar.gz
c5f07423c9726bc4671327596d8585a669b25d75d9143db99e621ab6a08ed4aa0ee22e9725afe10bf4bf98ed503a06e9f52639f41a3cae61a34987b4ed643a32  0001-musl-fixes.patch"