# Template file for 'zfsbootmenu'
pkgname=zfsbootmenu
version=2.2.1
revision=1
build_style=gnu-makefile
depends="dracut zfs kexec-tools fzf bash pigz mbuffer ncurses
 perl-Sort-Versions perl-boolean perl-YAML-PP"
short_desc="ZFS bootloader for root-on-ZFS systems"
maintainer="Zach Dykstra <dykstra.zachary@gmail.com>"
license="MIT"
homepage="https://github.com/zbm-dev/zfsbootmenu"
changelog="https://raw.githubusercontent.com/zbm-dev/zfsbootmenu/master/CHANGELOG.md"
distfiles="https://github.com/zbm-dev/zfsbootmenu/archive/refs/tags/v${version}.tar.gz"
checksum=02b7e8b5573c843042c9f4164209e012790c05665c463f547bed03eb0821e348
conf_files="/etc/zfsbootmenu/config.yaml /etc/zfsbootmenu/mkinitcpio.conf"

post_install() {
	vlicense LICENSE
	vmkdir usr/share/examples/${pkgname}
	vcopy etc/zfsbootmenu/config.yaml usr/share/examples/${pkgname}
}
