# Template file for 'limine'
pkgname=limine
version=8.6.0
revision=2
build_style=gnu-configure
configure_args="--enable-all TOOLCHAIN_FOR_TARGET=llvm"
hostmakedepends="mtools nasm llvm clang lld"
short_desc="Advanced, portable, multiprotocol bootloader"
maintainer="Mintsuki <mintsuki@protonmail.com>"
license="BSD-2-Clause"
homepage="https://limine-bootloader.org/"
changelog="https://raw.githubusercontent.com/limine-bootloader/limine/trunk/ChangeLog"
distfiles="https://github.com/limine-bootloader/limine/releases/download/v${version}/limine-${version}.tar.gz"
checksum=e1b159ea7c4d72b253421909e52d4a5343c9378caef4b8be4339c5e48c691821

post_install() {
	vlicense COPYING
}

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