core/procps-ng/PKGBUILD
2017-01-03 01:27:44 +00:00

46 lines
983 B
Bash

pkgname=procps-ng
pkgver=3.3.12
pkgrel=1
pkgdesc='Utilities for monitoring your system and its processes'
url='http://sourceforge.net/projects/procps-ng/'
license=('GPL' 'LGPL')
arch=('x86_64')
groups=('base')
depends=('systemd' 'ncurses')
source=("http://downloads.sourceforge.net/project/${pkgname}/Production/${pkgname}-${pkgver}.tar.xz")
sha1sums=('82c0745f150f1385ca01fe7d24f05f74e31c94c6')
conflicts=('procps')
provides=('procps')
replaces=('procps')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
sed 's:<ncursesw/:<:g' -i watch.c
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
./configure \
--prefix=/usr \
--exec-prefix=/ \
--sysconfdir=/etc \
--libdir=/usr/lib \
--bindir=/usr/bin \
--sbindir=/usr/bin \
--enable-watch8bit \
--with-systemd
make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
# provided by util-linux
rm "${pkgdir}/usr/bin/kill"
rm "${pkgdir}/usr/share/man/man1/kill.1"
}