# Contributor: Carlo Landmeter # Maintainer: Lucas Ramage pkgname=efivar pkgver=37 pkgrel=0 pkgdesc="Tools and library to manipulate EFI variables" url="https://github.com/rhboot/efivar" arch="x86 x86_64 armhf armv7 aarch64 ppc64le" license="LGPL-2.1" depends="" depends_dev="" makedepends="$depends_dev popt-dev linux-headers" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" source="https://github.com/rhboot/efivar/releases/download/$pkgver/efivar-$pkgver.tar.bz2 musl-bswap.patch" builddir="$srcdir/efivar-$pkgver" build() { cd "$builddir" libdir="/usr/lib" make } package() { cd "$builddir" libdir="/usr/lib" make DESTDIR="$pkgdir" install } check() { LD_LIBRARY_PATH="$builddir"/src \ "$builddir"/src/efivar --help > /dev/null } sha512sums="305a82ed103c7e3d8f723934019d552677c73558768dd5341f87d0364f5c60824d24f5a8e1bf90075e825908085083d4ecdccec5ac757fd38ee6ac8fea28c3e4 efivar-37.tar.bz2 84fd5baf91df91889cfcfed2bcf59f073dc754f6aba1944059203bbe99f4bbb6dc92addff9fae8f687a2c95f9438b0eb301dd0320728a8a2a6edd5e2b2b5ba94 musl-bswap.patch"