summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2017-06-12 11:51:47 +0000
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2017-06-12 11:51:47 +0000
commit42d539f437c2f929f7661df500f9463f32f94d65 (patch)
treee199625671d5f4aaf4188f69c18a11979af2f2be /user
parenteace98b0d0df4ab027af407a8c063fdedeae1564 (diff)
downloadpackages-42d539f437c2f929f7661df500f9463f32f94d65.tar.gz
packages-42d539f437c2f929f7661df500f9463f32f94d65.tar.bz2
packages-42d539f437c2f929f7661df500f9463f32f94d65.tar.xz
packages-42d539f437c2f929f7661df500f9463f32f94d65.zip
user/psmisc: new package
Diffstat (limited to 'user')
-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"