# Template file for 'zfsbootmenu'
pkgname=zfsbootmenu
version=3.1.0
revision=1
build_style=gnu-makefile
make_build_target="zbm-release"
hostmakedepends="tar"
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=55aa61ff7450131348dcfe45c2b7ea01bec84b559f0e8e149b3dc8dbd093eaff
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}
}
