void-packages/srcpkgs/numactl/template
2019-01-07 16:14:53 +01:00

44 lines
1 KiB
Bash

# Template file for 'numactl'
pkgname=numactl
version=2.0.12
revision=1
only_for_archs="i686 i686-musl x86_64 x86_64-musl ppc64le ppc64le-musl ppc64-musl"
build_style=gnu-configure
hostmakedepends="automake libtool"
short_desc="Simple NUMA policy support"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="LGPL-2.1-only"
homepage="https://github.com/numactl/numactl"
distfiles="https://github.com/numactl/numactl/archive/v${version}.tar.gz"
checksum=7c3e819c2bdeb883de68bafe88776a01356f7ef565e75ba866c4b49a087c6bdf
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
vmove usr/lib/pkgconfig
}
}