# Template file for 'fwupd-efi'
pkgname=fwupd-efi
version=1.1
revision=1
archs="x86_64* i686* arm* aarch64*"
build_style=meson
build_helper="gir"
configure_args="-Defi-includedir=${XBPS_CROSS_BASE}/usr/include/efi
 -Defi-ldsdir=${XBPS_CROSS_BASE}/usr/lib -Defi-ld=${XBPS_CROSS_BASE}/bin/ld
 -Defi-objcopy=${XBPS_CROSS_BASE}/bin/objcopy
 -Defi-libdir=${XBPS_CROSS_BASE}/usr/lib"
hostmakedepends="efivar"
makedepends="libefivar-devel gnu-efi-libs"
short_desc="EFI Application used by uefi-capsule plugin in fwupd"
maintainer="dkwo <nicolopiazzalunga@gmail.com>"
license="LGPL-2.1-or-later"
homepage="https://github.com/fwupd/fwupd-efi"
distfiles="https://github.com/fwupd/fwupd-efi/archive/refs/tags/${version}.tar.gz"
checksum=a11da90f88b06f2733760b4dcb7450d5e8dc8bf94d0ba7fccd62a9b67e995429

if [ "$CROSS_BUILD" ]; then
	configure_args+=" -Defi-cc=/usr/bin/${XBPS_CROSS_TRIPLET}-gcc"
fi
