mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 11:54:38 +08:00
46 lines
983 B
Bash
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"
|
|
}
|