# Template file for 'limine'
pkgname=limine
version=4.20230215.0
revision=1
build_style=gnu-configure
configure_args="--enable-all CROSS_TOOLCHAIN=llvm"
hostmakedepends="mtools nasm llvm clang lld"
short_desc="Advanced x86/x86_64 BIOS/UEFI bootloader"
maintainer="Mintsuki <mintsuki@protonmail.com>"
license="BSD-2-Clause"
homepage="https://limine-bootloader.org/"
distfiles="https://github.com/limine-bootloader/limine/releases/download/v${version}/limine-${version}.tar.xz"
checksum=e2cf926937c276b029488eec26053d4797be75eed67cbc8429680ae9487a9a3c

post_install() {
	vlicense LICENSE.md
}

limine-devel_package() {
	depends="${sourcepkg}>=${version}_${revision}"
	short_desc+=" - development files"
	pkg_install() {
		vmove usr/include
	}
}
