# Contributor: Síle Ekaterin Liszka # Maintainer: Síle Ekaterin Liszka pkgname=fwupd-efi pkgver=1.4 pkgrel=0 pkgdesc="EFI application for fwupd" url="https://fwupd.org" arch="all !ppc !ppc64" options="!check" license="LGPL-2.1+ AND (Custom OR GPL-2.0+)" depends="" makedepends="meson ninja gnu-efi py3-pefile" subpackages="$pkgname-dev" source="https://github.com/fwupd/fwupd-efi/releases/download/$pkgver/fwupd-efi-$pkgver.tar.xz licenses.txt" build() { meson setup \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --buildtype=release \ --wrap-mode=nofallback \ . output meson compile -C output } check() { meson test -C output } package() { DESTDIR="$pkgdir" meson install -C output install -Dm644 "$srcdir"/licenses.txt "$pkgdir"/usr/share/licenses/$pkgname-$pkgver.txt } sha512sums="c330409861a8c1e332a0d4fd49c54ef2c5bf7cdaca99d14de39b50fb35f0c490e9f7f7a4c9dd48181bd509cd358c43eb23659536aea93408c1fefb47629e4991 fwupd-efi-1.4.tar.xz 135eed7311ba40216e1a201f9bc0bd2cb6040788ffc7b8bb0209950c1a2e3d65b179972b8c43ab5d3f1b28fd44b4e24985d5a3f886e090ed3cb61c2231c17970 licenses.txt"