void-packages/srcpkgs/numactl/template

43 lines
975 B
Bash

# Template file for 'numactl'
pkgname=numactl
version=2.0.11
revision=1
build_style=gnu-configure
hostmakedepends="automake libtool"
short_desc="Simple NUMA policy support"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="LGPL-2.1"
homepage="http://oss.sgi.com/projects/libnuma/"
distfiles="ftp://oss.sgi.com/www/projects/libnuma/download/${pkgname}-${version}.tar.gz"
checksum=450c091235f891ee874a8651b179c30f57a1391ca5c4673354740ba65e527861
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
if [ "$XBPS_TARGET_MACHINE" = "i686" ]; then
# XXX
nopie=yes
fi
pre_configure() {
autoreconf -fi
}
post_install() {
rm -r ${DESTDIR}/usr/share/man/man2
}
libnuma_package() {
short_desc+=" - runtime library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
libnuma-devel_package() {
depends="libnuma>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
vmove usr/lib/*.so
vmove usr/share/man/man3
}
}