# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=efi-mkuki
pkgver=0.1.1
pkgrel=1
pkgdesc="EFI Unified Kernel Image Maker"
url="https://github.com/jirutka/efi-mkuki"
arch="noarch"
license="MIT"
# Needs objcopy from binutils (see #17102).
depends="binutils"
source="https://github.com/jirutka/efi-mkuki/archive/v$pkgver/efi-mkuki-$pkgver.tar.gz"
options="!check"  # no tests provided

case "$CARCH" in
	# Gummiboot is currently not available for other architectures.
	# The user has to obtain EFI stubs themselves.
	x86*|aarch64)	depends="$depends efistub"
		makedepends="gummiboot-efistub"
		;;
esac

package() {
	make install DESTDIR="$pkgdir" prefix=/usr
}

sha512sums="
2edf63af3a3ba80df4aaba2e86483868cc947e6690e7db94db43f60c51879d349873623776aa885c083718d1ebc2167e545c7dec59b715294ba6852eae932ac4  efi-mkuki-0.1.1.tar.gz
"
