aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
Diffstat (limited to 'main')
-rw-r--r--main/procps/APKBUILD21
1 files changed, 13 insertions, 8 deletions
diff --git a/main/procps/APKBUILD b/main/procps/APKBUILD
index 9f3bd70150..ddb6b67263 100644
--- a/main/procps/APKBUILD
+++ b/main/procps/APKBUILD
@@ -1,21 +1,22 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=procps
pkgver=3.3.12
-pkgrel=1
+pkgrel=2
pkgdesc="Utilities for monitoring your system and processes on your system"
url="https://gitlab.com/procps-ng/procps"
arch="all"
license="GPL LGPL"
makedepends="ncurses-dev gettext-dev autoconf automake libtool"
+checkdepends="dejagnu"
subpackages="$pkgname-dev $pkgname-doc libproc"
source="$pkgname-$pkgver.tar.gz::https://gitlab.com/procps-ng/$pkgname/repository/archive.tar.gz?ref=v$pkgver"
builddir="$srcdir/$pkgname-v$pkgver"
prepare() {
# NOTE: Name of the tarball's top-level directory contains SHA1.
- ln -fs $pkgname-v$pkgver-* "$builddir" || return 1
+ ln -fs $pkgname-v$pkgver-* "$builddir"
- default_prepare || return 1
+ default_prepare
cd "$builddir"
./autogen.sh
@@ -39,19 +40,23 @@ build() {
--disable-w-from \
--disable-kill \
--disable-rpath \
- --with-ncurses \
- || return 1
- make || return 1
+ --with-ncurses
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" ldconfig=true install="install -D" \
- install || return 1
+ install
# These binaries are identical.
- ln -sf pgrep "$pkgdir"/bin/pkill || return 1
+ ln -sf pgrep "$pkgdir"/bin/pkill
install -d "$pkgdir"/usr/lib
mv "$pkgdir"/include "$pkgdir"/usr/ \