void-packages/srcpkgs/opensm/template

32 lines
805 B
Bash

# Template file for 'opensm'
pkgname=opensm
version=3.3.24
revision=1
build_style=gnu-configure
hostmakedepends="automake bison flex libtool"
makedepends="rdma-core-devel"
short_desc="InfiniBand Subnet Manager and Administrator"
maintainer="uhohspaghetios <rich@servermonkeys.com>"
license="GPL-2.0-only"
homepage="https://github.com/linux-rdma/opensm"
distfiles="https://github.com/linux-rdma/opensm/releases/download/${version}/opensm-${version}.tar.gz"
checksum=a3335e371a4b044427574dff9d324c6c334e502e8facdf58bc070ee151d7e460
pre_configure() {
./autogen.sh
}
post_install() {
rm -rf ${DESTDIR}/etc/init.d
}
opensm-devel_package() {
depends="opensm-${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove "usr/lib/*.so"
vmove "usr/lib/*.a"
}
}