summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/psmisc/APKBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/user/psmisc/APKBUILD b/user/psmisc/APKBUILD
new file mode 100644
index 000000000..c36a37fec
--- /dev/null
+++ b/user/psmisc/APKBUILD
@@ -0,0 +1,51 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+
+pkgname=psmisc
+pkgver=23.0
+pkgrel=0
+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 dejagnu"
+subpackages="$pkgname-doc $pkgname-lang"
+source="$pkgname-$pkgver.tar.bz2::https://gitlab.com/$pkgname/$pkgname/repository/archive.tar.bz2?ref=v$pkgver"
+options="!strip"
+builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ ln -fs $pkgname-v$pkgver-* "$builddir" || return 1
+
+ default_prepare || return 1
+
+ cd "$builddir"
+ sh autogen.sh
+}
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --enable-harden-flags \
+ --enable-ipv6 \
+ --disable-selinux # is SELinux on Alpine a thing?
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="d4f1d90fb92f83b7583cd82a3c1027de0e53fbee85253d796878878d03a52fc220bd25beaec34c651a1ed547fc13919c5c014a522124308a7421d3f64238a70f psmisc-23.0.tar.bz2"