# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Orhun Parmaksız <orhunparmaksiz@gmail.com>
pkgname=zps
pkgver=2.0.0
pkgrel=0
pkgdesc="Utility for listing and reaping zombie processes"
url="https://github.com/orhun/zps"
license="GPL-3.0-only"
arch="all"
options="!check" # no test suite
makedepends="cmake samurai"
subpackages="$pkgname-doc"
source="https://github.com/orhun/zps/archive/$pkgver/zps-$pkgver.tar.gz"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install

	install -Dm644 -t "$pkgdir"/usr/share/man/man1 man/zps.1
}

sha512sums="
235e31e3e19abd015e21aeb9483784658e03218381890044e0fb63f2d7687328fcebcc67812ba0a20b54600024200d36833860f4289ef7c9e374b7ecd272e57d  zps-2.0.0.tar.gz
"
