summaryrefslogtreecommitdiff
path: root/user/psmisc/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'user/psmisc/APKBUILD')
-rw-r--r--user/psmisc/APKBUILD10
1 files changed, 7 insertions, 3 deletions
diff --git a/user/psmisc/APKBUILD b/user/psmisc/APKBUILD
index 42ef3e51d..5a1351817 100644
--- a/user/psmisc/APKBUILD
+++ b/user/psmisc/APKBUILD
@@ -8,9 +8,11 @@ pkgdesc="Miscellaneous utilities that use the proc filesystem"
url="https://gitlab.com/psmisc/psmisc"
arch="all"
license="GPLv2+"
-makedepends="ncurses-dev gettext-dev autoconf>=2.69 automake"
+makedepends_build="autoconf>=2.69 automake"
+makedepends_host="ncurses-dev gettext-dev"
checkdepends="dejagnu"
-subpackages="$pkgname-doc $pkgname-lang"
+subpackages="$pkgname-doc"
+[ "$CBUILD" != "$CHOST" ] || subpackages="$subpackages $pkgname-lang"
source="$pkgname-$pkgver.tar.bz2::https://gitlab.com/$pkgname/$pkgname/repository/archive.tar.bz2?ref=v$pkgver
dont-underlink-peekfd.patch
fix-peekfd-on-ppc.patch
@@ -39,7 +41,9 @@ build() {
--localstatedir=/var \
--enable-harden-flags \
--enable-ipv6 \
- --disable-selinux # is SELinux on Alpine a thing?
+ --disable-selinux \
+ ac_cv_func_malloc_0_nonnull=yes \
+ ac_cv_func_realloc_0_nonnull=yes
make
}