1 # Maintainer: David Runge <dvzrv@archlinux.org>
2 # Contributor: Tobias Powalowski <tpowa@archlinux.org>
3 # Contributor: Keshav Amburay <(the ddoott ridikulus ddoott rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)>
6 pkgdesc="Tools and libraries to work with EFI variables"
10 url="https://github.com/rhboot/efivar"
14 provides=('libefiboot.so' 'libefivar.so')
15 source=("git+https://github.com/rhinstaller/efivar.git#tag=${pkgver}?signed")
17 validpgpkeys=('B00B48BC731AA8840FED9FB0EED266B70F4FEF10') # Peter Jones <pjones@redhat.com>
20 mv -v "${pkgname}" "${pkgname}-${pkgver}"
21 cd "${pkgname}-${pkgver}"
22 # -Werror, not even once
23 sed -e 's/-Werror//g' -i gcc.specs
24 # remove insecure rpath in efivar-tester
25 sed 's|-rpath,$(TOPDIR)/src|-rpath,$(libdir)|g' -i src/test/Makefile
29 cd "${pkgname}-${pkgver}"
30 make libdir="/usr/lib/" \
32 mandir="/usr/share/man/" \
33 includedir="/usr/include/"
35 make libdir="/usr/lib/" \
37 mandir="/usr/share/man/" \
38 includedir="/usr/include/" \
43 cd "${pkgname}-${pkgver}"
44 make DESTDIR="${pkgdir}/" \
47 mandir="/usr/share/man/" \
48 includedir="/usr/include/" install -j1 V=1
49 install -vDm 755 "src/test/tester" "${pkgdir}/usr/bin/efivar-tester"
50 install -vDm 644 {README.md,TODO} -t "${pkgdir}/usr/share/doc/${pkgname}"