void-packages/srcpkgs/procps-ng/template

51 lines
1.3 KiB
Text

# Template file for 'procps-ng'
pkgname=procps-ng
version=3.3.5
revision=4
wrksrc="procps-procps"
build_style=gnu-configure
configure_args="--exec-prefix=/ --prefix=/usr --libdir=/usr/lib --disable-static"
short_desc="Utilities for monitoring your system and its processes"
maintainer="Juan RP <xtraeme@gmail.com>"
license="GPL-2, LGPL-2.1"
homepage="http://gitorious.org/procps"
distfiles="http://xbps.nopcode.org/distfiles/${pkgname}-${version}.tar.gz"
checksum=d3ac6611af888ef8e4f32f4b60718af77d32d8e3abe07f63d985b3abca332d53
conf_files="/etc/sysctl.conf"
replaces="procps>=0"
provides="procps-${version}"
conflicts="coreutils<8.21_3"
makedepends="automake gettext-devel pkg-config ncurses-devel"
crossmakedepends="ncurses-devel"
if [ -n "$XBPS_CROSS_TRIPLET" ]; then
configure_args="${configure_args} ac_cv_func_malloc_0_nonnull=yes
ac_cv_func_realloc_0_nonnull=yes"
fi
pre_configure() {
echo ${version} > .tarball-version
./autogen.sh
}
post_install() {
vinstall ${FILESDIR}/sysctl.conf 644 etc
# provided by util-linux
rm ${DESTDIR}/bin/kill
rm ${DESTDIR}/usr/share/man/man1/kill.1
vmove "bin/*" usr/bin
vmkdir usr/sbin
vmove "sbin/*" usr/sbin
# Create pidof symlink.
ln -sfr ${DESTDIR}/usr/bin/pgrep ${DESTDIR}/usr/bin/pidof
# Remove devel and docs.
rm -rf ${DESTDIR}/usr/share/doc \
${DESTDIR}/usr/include ${DESTDIR}/usr/lib/pkgconfig
}