void-packages/srcpkgs/libstatgrab/template

34 lines
931 B
Bash

# Template file for 'libstatgrab'
pkgname=libstatgrab
version=0.91
revision=3
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="autoconf"
makedepends="ncurses-devel"
short_desc="Library being useful interface to system statistics"
maintainer="Orphaned <orphan@voidlinux.org>"
license="LGPL-2.1-or-later, GPL-2.0-or-later"
homepage="http://www.i-scream.org/libstatgrab"
distfiles="http://www.mirrorservice.org/sites/ftp.i-scream.org/pub/i-scream/${pkgname}/${pkgname}-${version}.tar.gz"
checksum=03e9328e4857c2c9dcc1b0347724ae4cd741a72ee11acc991784e8ef45b7f1ab
case "$XBPS_TARGET_MACHINE" in
*-musl) CFLAGS="-DLINUX -DHAVE_PROCFS" ;;
esac
pre_configure() {
autoconf
}
libstatgrab-devel_package() {
depends="${sourcepkg}-${version}_${revision}"
short_desc+=" -- development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/man/man3
}
}