# Maintainer: Peter Shkenev <santurysim@gmail.com>
pkgname=s6-linux-init-man-pages
pkgver=1.1.2.0.1
pkgrel=0
pkgdesc="Unofficial mdoc versions of the s6-linux-init documentation"
url="https://git.sr.ht/~flexibeast/s6-linux-init-man-pages"
arch="noarch"
license="ISC"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~flexibeast/s6-linux-init-man-pages/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # no tests
install_if="${pkgname%-*-*}>=${pkgver%.*} docs"

package() {
	make DESTDIR="$pkgdir" install

	find "$pkgdir" -type f ! -name "*.gz" \
		-exec gzip -9 {} \;
}

sha512sums="
49574fb4f8634e5b15b3ecaf9de4c4015c494d55091d93da31ab93dd16c0beb737a03e43e44f1a1f0500268adf75ebff8841a8ed0533e971c5b37e5b5989f972  s6-linux-init-man-pages-1.1.2.0.1.tar.gz
"
