# Template file for 'grub-btrfs'
pkgname=grub-btrfs
version=4.10.1
revision=1
build_style=gnu-makefile
depends="grub bash"
short_desc="Include btrfs snapshots at Grub menu"
maintainer="Anjandev Momi <anjan@momi.ca>"
license="GPL-3.0-or-later"
homepage="https://github.com/Antynea/grub-btrfs"
distfiles="https://github.com/Antynea/grub-btrfs/archive/v${version}.tar.gz"
checksum=3ef53f16a7bc0fdd5a5ac2216a41bf1b2f4fd2283717c5c240415d5d24d3734b

post_install() {
	rm -rf -- "${DESTDIR}"/usr/lib/systemd
}

grub-btrfs-runit_package() {
	depends="wendy ${sourcepkg}>=${version}_${revision}"
	short_desc+=" - runit service"

	pkg_install() {
		vsv grub-btrfs
	}
}
