# Template file for 'hashboot'
pkgname=hashboot
version=0.9.14
revision=1
archs=noarch
hostmakedepends="asciidoc"
short_desc="Check integrity of files in /boot, mbr & (mostly) coreboot bios"
maintainer="teldra <teldra@rotce.de>"
license="custom: Hugware"
homepage="https://schlomp.space/tastytea/hashboot"
distfiles="https://github.com/tastytea/hashboot/archive/${version}.tar.gz"
checksum=e044b13855faaf9816df55ff0614cc1fee7999de6e5160a0da38b46da86ecab7

do_build() {
	./build_manpage.sh
}

do_install() {
	vinstall hooks/kernel-postinst 755 etc/kernel.d/post-install 99-hashboot
	vinstall hooks/kernel-postinst 755 etc/kernel.d/post-remove 99-hashboot
	vinstall init/voidlinux-coreservice 644 etc/runit/core-services 04-hashboot.sh
	vman hashboot.1
	vbin hashboot
	vlicense LICENSE
}
