[arch-commits] Commit in fwupdate/repos (5 files)

Bruno Pagani archange at archlinux.org
Tue Feb 27 18:27:05 UTC 2018


    Date: Tuesday, February 27, 2018 @ 18:27:04
  Author: archange
Revision: 299346

archrelease: copy trunk to community-testing-x86_64

Added:
  fwupdate/repos/community-testing-x86_64/
  fwupdate/repos/community-testing-x86_64/PKGBUILD
    (from rev 299345, fwupdate/trunk/PKGBUILD)
  fwupdate/repos/community-testing-x86_64/esp-as-boot-efi.hook
    (from rev 299345, fwupdate/trunk/esp-as-boot-efi.hook)
  fwupdate/repos/community-testing-x86_64/esp-as-boot.hook
    (from rev 299345, fwupdate/trunk/esp-as-boot.hook)
  fwupdate/repos/community-testing-x86_64/fwupdate.install
    (from rev 299345, fwupdate/trunk/fwupdate.install)

----------------------+
 PKGBUILD             |   42 ++++++++++++++++++++++++++++++++++++++++++
 esp-as-boot-efi.hook |   10 ++++++++++
 esp-as-boot.hook     |   10 ++++++++++
 fwupdate.install     |    9 +++++++++
 4 files changed, 71 insertions(+)

Copied: fwupdate/repos/community-testing-x86_64/PKGBUILD (from rev 299345, fwupdate/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2018-02-27 18:27:04 UTC (rev 299346)
@@ -0,0 +1,42 @@
+# Maintainer: Bruno Pagani <archange at archlinux.org>
+# Contributor: Mirco Tischler <mt-ml at gmx dot de>
+
+pkgname=fwupdate
+pkgver=10
+pkgrel=1
+pkgdesc="Tools for using the ESRT and UpdateCapsule() to apply firmware updates"
+arch=('x86_64')
+url="https://github.com/rhinstaller/fwupdate"
+license=('GPL2')
+depends=('efivar' 'libsmbios' 'bash')
+makedepends=('pesign' 'gnu-efi-libs')
+source=("${url}/releases/download/${pkgver}/${pkgname}-${pkgver}.tar.bz2"
+        'esp-as-boot.hook'
+        'esp-as-boot-efi.hook')
+sha256sums=('73f42c6097049ab4490e88bd7742ac962f892e6660ee2af40254605d011ef33a'
+            '28deb79162c937a6c3d08c0f685b5de9bcf95bfd3511bb8bf00f2680d95b6b9c'
+            '49c16618fe4524d0c1f32e1df4f18bab3f9ed0ee7c2565457fd6643f6d70da00')
+install=fwupdate.install
+
+_efidir=arch
+
+build() {
+    cd ${pkgname}-${pkgver}
+    make EFIDIR="${_efidir}" GNUEFIDIR=/usr/lib
+}
+
+package() {
+    cd ${pkgname}-${pkgver}
+
+    make LIBDIR=/usr/lib EFIDIR="${_efidir}" DESTDIR="${pkgdir}" libexecdir=/usr/lib/ install
+
+    # Do not install anything under /boot. Copy files to /usr/lib/fwupdate for manual or hook installation.
+    install -d "${pkgdir}"/usr/{lib,share/doc}/${pkgname}
+    mv "${pkgdir}"/boot/efi/EFI "${pkgdir}"/usr/lib/${pkgname}/EFI
+    rm -rf "${pkgdir}"/boot
+    rm -rf "${pkgdir}"/usr/src
+    rm -rf "${pkgdir}"/usr/lib/debug
+    cd ..
+    install -Dm644 esp-as-boot.hook -t "${pkgdir}"/usr/share/doc/${pkgname}/
+    install -Dm644 esp-as-boot-efi.hook -t "${pkgdir}"/usr/share/doc/${pkgname}/
+}

Copied: fwupdate/repos/community-testing-x86_64/esp-as-boot-efi.hook (from rev 299345, fwupdate/trunk/esp-as-boot-efi.hook)
===================================================================
--- community-testing-x86_64/esp-as-boot-efi.hook	                        (rev 0)
+++ community-testing-x86_64/esp-as-boot-efi.hook	2018-02-27 18:27:04 UTC (rev 299346)
@@ -0,0 +1,10 @@
+[Trigger]
+Type = Pacakge
+Operation = Install
+Operation = Upgrade
+Target = fwupdate
+
+[Action]
+Description = Copying fwupdate to EFI directory...
+When = PostTransaction
+Exec = /usr/bin/cp -r /usr/lib/fwupdate/EFI /boot/efi

Copied: fwupdate/repos/community-testing-x86_64/esp-as-boot.hook (from rev 299345, fwupdate/trunk/esp-as-boot.hook)
===================================================================
--- community-testing-x86_64/esp-as-boot.hook	                        (rev 0)
+++ community-testing-x86_64/esp-as-boot.hook	2018-02-27 18:27:04 UTC (rev 299346)
@@ -0,0 +1,10 @@
+[Trigger]
+Type = Pacakge
+Operation = Install
+Operation = Upgrade
+Target = fwupdate
+
+[Action]
+Description = Copying fwupdate to EFI directory...
+When = PostTransaction
+Exec = /usr/bin/cp -r /usr/lib/fwupdate/EFI /boot

Copied: fwupdate/repos/community-testing-x86_64/fwupdate.install (from rev 299345, fwupdate/trunk/fwupdate.install)
===================================================================
--- community-testing-x86_64/fwupdate.install	                        (rev 0)
+++ community-testing-x86_64/fwupdate.install	2018-02-27 18:27:04 UTC (rev 299346)
@@ -0,0 +1,9 @@
+post_install() {
+    echo "Please read https://wiki.archlinux.org/index.php/fwupd for things to setup before using fwupdate"
+}
+
+post_upgrade() {
+    if [ $(vercmp $2 10-1) -lt 0 ] ; then
+        post_install
+    fi
+}



More information about the arch-commits mailing list