void-packages/srcpkgs/libstatgrab/template
2019-11-09 19:46:46 +01:00

34 lines
962 B
Bash

# Template file for 'libstatgrab'
pkgname=libstatgrab
version=0.92
revision=1
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=5bf1906aff9ffc3eeacf32567270f4d819055d8386d98b9c8c05519012d5a196
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/bin/statgrab-make*
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
vmove usr/share/man/man3
}
}