void-packages/srcpkgs/procps-ng/template

44 lines
1.3 KiB
Bash

# Template file for 'procps-ng'
pkgname=procps-ng
version=4.0.4
revision=2
build_style=gnu-configure
configure_args="--exec-prefix=/ --bindir=/usr/bin --sbindir=/usr/bin
--libdir=/usr/lib --disable-kill --enable-watch8bit
--disable-modern-top --without-systemd"
hostmakedepends="gettext-devel pkg-config"
makedepends="ncurses-devel"
checkdepends="dejagnu"
short_desc="Utilities for monitoring your system and its processes"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://gitlab.com/procps-ng/procps"
changelog="https://gitlab.com/procps-ng/procps/raw/master/NEWS"
distfiles="${SOURCEFORGE_SITE}/procps-ng/Production/procps-ng-${version}.tar.xz"
checksum=22870d6feb2478adb617ce4f09a787addaf2d260c5a8aa7b17d889a962c5e42e
# "pmap X with unreachable process" and "pmap XX with unreachable process" fail
# in the CI.
make_check=ci-skip
conf_files="/etc/sysctl.conf"
post_extract() {
vsed -i 's,ncursesw/ncurses.h,ncurses.h,g' src/watch.c
}
post_install() {
vconf ${FILESDIR}/sysctl.conf
}
procps-ng-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/share/man/man3
vmove usr/include
vmove usr/lib/pkgconfig
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
}
}