# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=efivar
pkgver=36
pkgrel=0
pkgdesc="Tools and library to manipulate EFI variables"
url="https://github.com/rhboot/efivar"
arch="pmmx x86_64 arm64 ia64"
options="!check"  # "WARNING: You should probably not run tests /ever/.  This is not a joke."
license="LGPL-2.1+"
depends=""
depends_dev="popt-dev"
makedepends="$depends_dev"
subpackages="$pkgname-dev $pkgname-doc"
source="https://github.com/rhboot/$pkgname/releases/download/$pkgver/$pkgname-$pkgver.tar.bz2
	0001-makeguids-Ensure-compatibility-with-other-libcs.patch
	"

build() {
	cd "$builddir"
	make prefix="/usr" libdir="/usr/lib"
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" prefix="/usr" libdir="/usr/lib" install
}

sha512sums="951feabe2d238826fdd6e74e8f7a24f04d705f9ef925cfcfb852944d2d7a4f04e3a6c23f276c40e5564da42614558941dbe7aaf21efa6a722a616e4d165aba2d  efivar-36.tar.bz2
8a47abad5d6d2ceffb5effdd177d3e678256961294ff66df1158084e3f45f0bcb07105a1c3df35b3a5c503742c4e59148df740c40fa3b7149b1f609f8b51ebd3  0001-makeguids-Ensure-compatibility-with-other-libcs.patch"