# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=efi-mkuki
pkgver=1.0.0
pkgrel=0
pkgdesc="EFI Unified Kernel Image Maker"
url="https://github.com/jirutka/efi-mkuki"
arch="noarch"
license="MIT"
# Needs objcopy and objdump 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
	# efistubs (systemd-efistub, stubbyboot-efistub, gummiboot-efistub) are
	# currently not available for other architectures. The user has to
	# obtain EFI stubs themselves.
	aarch64 | armv7 | x86_64 | x86) depends="$depends efistub";;
esac

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

sha512sums="
0dd0d91634e86700d079f2dc4cb19d4cbdcb28cb645c5dc3fa2d59b03afa24d8844ea0ec10375477ad2603fa76ae852be77c4f647aa919858369e14a8b584553  efi-mkuki-1.0.0.tar.gz
"
