aboutsummaryrefslogtreecommitdiffstats
path: root/testing/opensm/APKBUILD
blob: 11b83d375f56479b3cead84f4e302d91e57e373c (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
# Contributor: Jann - Ove Risvik <jann.ove@usaklig.com>
# Maintainer:
pkgname=opensm
pkgver=3.3.22
pkgrel=0
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 automake autoconf libtool linux-headers"
subpackages="$pkgname-dev $pkgname-doc $pkgname-openrc"
source="https://github.com/linux-rdma/opensm/releases/download/$pkgver/opensm-$pkgver.tar.gz
	0001-musl-fixes.patch"

prepare() {
	default_prepare
	autoreconf -fi
}

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

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

sha512sums="4334a44dbf26e0bc9349cbf22044730d1fe584ad3fda0c6623145e4aab611823e161bba669e3979d75326d90ccf558d85634bfe7f4a1db14adb63f153b77cb2f  opensm-3.3.22.tar.gz
c5f07423c9726bc4671327596d8585a669b25d75d9143db99e621ab6a08ed4aa0ee22e9725afe10bf4bf98ed503a06e9f52639f41a3cae61a34987b4ed643a32  0001-musl-fixes.patch"