[arch-commits] Commit in efivar/repos (testing-x86_64 testing-x86_64/PKGBUILD)

David Runge dvzrv at archlinux.org
Tue May 19 21:03:20 UTC 2020


    Date: Tuesday, May 19, 2020 @ 21:03:19
  Author: dvzrv
Revision: 386962

archrelease: copy trunk to testing-x86_64

Added:
  efivar/repos/testing-x86_64/
  efivar/repos/testing-x86_64/PKGBUILD
    (from rev 386961, efivar/trunk/PKGBUILD)

----------+
 PKGBUILD |   51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

Copied: efivar/repos/testing-x86_64/PKGBUILD (from rev 386961, efivar/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2020-05-19 21:03:19 UTC (rev 386962)
@@ -0,0 +1,51 @@
+# Maintainer: David Runge <dvzrv at archlinux.org>
+# Contributor: Tobias Powalowski <tpowa at archlinux.org>
+# Contributor: Keshav Amburay <(the ddoott ridikulus ddoott rat) (aatt) (gemmaeiil) (ddoott) (ccoomm)>
+
+pkgname=efivar
+pkgdesc="Tools and libraries to work with EFI variables"
+pkgver=37
+pkgrel=4
+arch=('x86_64')
+url="https://github.com/rhboot/efivar"
+license=('LGPL2.1')
+makedepends=('git')
+depends=('glibc')
+provides=('libefiboot.so' 'libefivar.so')
+source=("git+https://github.com/rhinstaller/efivar.git#tag=${pkgver}?signed")
+sha512sums=('SKIP')
+validpgpkeys=('B00B48BC731AA8840FED9FB0EED266B70F4FEF10') # Peter Jones <pjones at redhat.com>
+
+prepare() {
+  mv -v "${pkgname}" "${pkgname}-${pkgver}"
+  cd "${pkgname}-${pkgver}"
+  # -Werror, not even once
+  sed -e 's/-Werror//g' -i gcc.specs
+  # remove insecure rpath in efivar-tester
+  sed 's|-rpath,$(TOPDIR)/src|-rpath,$(libdir)|g' -i src/test/Makefile
+}
+
+build() {
+  cd "${pkgname}-${pkgver}"
+  make libdir="/usr/lib/" \
+       bindir="/usr/bin/" \
+       mandir="/usr/share/man/" \
+       includedir="/usr/include/"
+  # build efivar-tester
+  make libdir="/usr/lib/" \
+       bindir="/usr/bin/" \
+       mandir="/usr/share/man/" \
+       includedir="/usr/include/" \
+       -C src/test
+}
+
+package() {
+  cd "${pkgname}-${pkgver}"
+  make DESTDIR="${pkgdir}/" \
+       libdir="/usr/lib/" \
+       bindir="/usr/bin/" \
+       mandir="/usr/share/man/" \
+       includedir="/usr/include/" install -j1 V=1
+  install -vDm 755 "src/test/tester" "${pkgdir}/usr/bin/efivar-tester"
+  install -vDm 644 {README.md,TODO} -t "${pkgdir}/usr/share/doc/${pkgname}"
+}



More information about the arch-commits mailing list