From 42d539f437c2f929f7661df500f9463f32f94d65 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 12 Jun 2017 11:51:47 +0000 Subject: user/psmisc: new package --- user/psmisc/APKBUILD | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 user/psmisc/APKBUILD (limited to 'user/psmisc') 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 +# Maintainer: A. Wilcox + +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" -- cgit v1.2.3-70-g09d2