diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-08-17 23:44:00 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2017-08-28 08:40:50 +0000 |
commit | 17de266deecff9ce55f82ae0ef136fc575c862af (patch) | |
tree | 9823837cbf779e9f3211c89f04fc9a6863ed09f9 /main/procps | |
parent | b04fd9bf1189cfc66ef9f50317ffd50348f1ccac (diff) | |
download | aports-17de266deecff9ce55f82ae0ef136fc575c862af.tar.bz2 aports-17de266deecff9ce55f82ae0ef136fc575c862af.tar.xz |
main/procps: add test suite, modernise
Diffstat (limited to 'main/procps')
-rw-r--r-- | main/procps/APKBUILD | 21 |
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/ \ |