summaryrefslogblamecommitdiff
path: root/user/psmisc/APKBUILD
blob: c36a37fecd2c2fdef07ab129b6d44aa3ca4b65b5 (plain) (tree)


















































                                                                                                                                                                  
# 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"