[arch-commits] Commit in archboot-linux-firmware/repos/extra-any (PKGBUILD PKGBUILD)

Tobias Powalowski tpowa at gemini.archlinux.org
Fri Jan 7 13:34:57 UTC 2022


    Date: Friday, January 7, 2022 @ 13:34:57
  Author: tpowa
Revision: 433755

archrelease: copy trunk to extra-any

Added:
  archboot-linux-firmware/repos/extra-any/PKGBUILD
    (from rev 433754, archboot-linux-firmware/trunk/PKGBUILD)
Deleted:
  archboot-linux-firmware/repos/extra-any/PKGBUILD

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-07 13:34:06 UTC (rev 433754)
+++ PKGBUILD	2022-01-07 13:34:57 UTC (rev 433755)
@@ -1,50 +0,0 @@
-# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
-
-pkgname=(archboot-linux-firmware)
-pkgver=20211027.1d00989
-pkgrel=3
-pkgdesc="Firmware files for archboot creation"
-url="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git;a=summary"
-license=('GPL2' 'GPL3' 'custom')
-arch=('any')
-makedepends=('linux-firmware' 'kmod' 'linux' 'tar')
-conflicts=('linux-firmware')
-options=(!strip)
-
-package() {
-  cd /lib/modules/*
-  # get firmware files from modules
-  for i in $(find -name '*.ko.zst');do
-    FIRMWARE="$FIRMWARE $(echo $(modinfo -F firmware $(pwd)/$i))"
-  done
-  mkdir -p ${pkgdir}/usr
-  for i in $(echo $FIRMWARE);do
-    [[ -e /lib/firmware/$i ]] &&  tar -C / -clpf - lib/firmware/$i | tar -C ${pkgdir}/usr -vxlspf -
-  done
-  for i in /lib/firmware/iwlwifi*; do 
-    [[ -f $i ]] &&  tar -C / -clpf - $i | tar -C ${pkgdir}/usr -vxlspf -
-  done
-  # compress firmware with xz, wait for mkinitcpio support to be implemented
-  # #FS 72263
-  find ${pkgdir}/usr -type f -execdir xz -C crc32 -z {} \+
-  # delete netronome
-  rm -r ${pkgdir}/usr/lib/firmware/netronome
-  # remove directories with symlinks
-  rm -r ${pkgdir}/usr/lib/firmware/{nvidia,mrvl,rtl_bt,rtlwifi}
-  # fix symlinks
-  tar -C / -clpf - lib/firmware/cypress | tar -C ${pkgdir}/usr -vxlspf -
-  tar -C / -clpf - lib/firmware/cxgb4/t4fw-1.26.2.0.bin | tar -C ${pkgdir}/usr -vxlspf -
-  tar -C / -clpf - lib/firmware/cxgb4/t5fw-1.26.2.0.bin | tar -C ${pkgdir}/usr -vxlspf -
-  tar -C / -clpf - lib/firmware/cxgb4/t6fw-1.26.2.0.bin | tar -C ${pkgdir}/usr -vxlspf -
-  tar -C / -clpf - lib/firmware/iwlwifi-7265-10.ucode | tar -C ${pkgdir}/usr -vxlspf -
-  tar -C / -clpf - lib/firmware/nvidia | tar -C ${pkgdir}/usr -vxlspf -
-  tar -C / -clpf - lib/firmware/mrvl | tar -C ${pkgdir}/usr -vxlspf -
-  tar -C / -clpf - lib/firmware/intel/ice/ddp/ice-1.3.26.0.pkg | tar -C ${pkgdir}/usr -vxlspf -
-  tar -C / -clpf - lib/firmware/rtl_bt | tar -C ${pkgdir}/usr -vxlspf -
-  tar -C / -clpf - lib/firmware/rtlwifi | tar -C ${pkgdir}/usr -vxlspf -
-
-  # add licenses
-  mkdir -p ${pkgdir}/usr/share/licenses/archboot-linux-firmware
-  tar -C /usr/share/licenses/linux-firmware -clpf - ./ | tar -C ${pkgdir}/usr/share/licenses/archboot-linux-firmware -vxlspf -
-}
-# vim:set sw=2 et:

Copied: archboot-linux-firmware/repos/extra-any/PKGBUILD (from rev 433754, archboot-linux-firmware/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-01-07 13:34:57 UTC (rev 433755)
@@ -0,0 +1,51 @@
+# Maintainer: Tobias Powalowski <tpowa at archlinux.org>
+
+pkgname=(archboot-linux-firmware)
+pkgver=20211027.1d00989
+pkgrel=4
+pkgdesc="Firmware files for archboot creation"
+url="https://git.kernel.org/?p=linux/kernel/git/firmware/linux-firmware.git;a=summary"
+license=('GPL2' 'GPL3' 'custom')
+arch=('any')
+makedepends=('linux-firmware' 'kmod' 'linux' 'tar')
+conflicts=('linux-firmware')
+provides=('linux-firmware')
+options=(!strip)
+
+package() {
+  cd /lib/modules/*
+  # get firmware files from modules
+  for i in $(find -name '*.ko.zst');do
+    FIRMWARE="$FIRMWARE $(echo $(modinfo -F firmware $(pwd)/$i))"
+  done
+  mkdir -p ${pkgdir}/usr
+  for i in $(echo $FIRMWARE);do
+    [[ -e /lib/firmware/$i ]] &&  tar -C / -clpf - lib/firmware/$i | tar -C ${pkgdir}/usr -vxlspf -
+  done
+  for i in /lib/firmware/iwlwifi*; do 
+    [[ -f $i ]] &&  tar -C / -clpf - $i | tar -C ${pkgdir}/usr -vxlspf -
+  done
+  # compress firmware with xz, wait for mkinitcpio support to be implemented
+  # #FS 72263
+  find ${pkgdir}/usr -type f -execdir xz -C crc32 -z {} \+
+  # delete netronome
+  rm -r ${pkgdir}/usr/lib/firmware/netronome
+  # remove directories with symlinks
+  rm -r ${pkgdir}/usr/lib/firmware/{nvidia,mrvl,rtl_bt,rtlwifi}
+  # fix symlinks
+  tar -C / -clpf - lib/firmware/cypress | tar -C ${pkgdir}/usr -vxlspf -
+  tar -C / -clpf - lib/firmware/cxgb4/t4fw-1.26.2.0.bin | tar -C ${pkgdir}/usr -vxlspf -
+  tar -C / -clpf - lib/firmware/cxgb4/t5fw-1.26.2.0.bin | tar -C ${pkgdir}/usr -vxlspf -
+  tar -C / -clpf - lib/firmware/cxgb4/t6fw-1.26.2.0.bin | tar -C ${pkgdir}/usr -vxlspf -
+  tar -C / -clpf - lib/firmware/iwlwifi-7265-10.ucode | tar -C ${pkgdir}/usr -vxlspf -
+  tar -C / -clpf - lib/firmware/nvidia | tar -C ${pkgdir}/usr -vxlspf -
+  tar -C / -clpf - lib/firmware/mrvl | tar -C ${pkgdir}/usr -vxlspf -
+  tar -C / -clpf - lib/firmware/intel/ice/ddp/ice-1.3.26.0.pkg | tar -C ${pkgdir}/usr -vxlspf -
+  tar -C / -clpf - lib/firmware/rtl_bt | tar -C ${pkgdir}/usr -vxlspf -
+  tar -C / -clpf - lib/firmware/rtlwifi | tar -C ${pkgdir}/usr -vxlspf -
+
+  # add licenses
+  mkdir -p ${pkgdir}/usr/share/licenses/archboot-linux-firmware
+  tar -C /usr/share/licenses/linux-firmware -clpf - ./ | tar -C ${pkgdir}/usr/share/licenses/archboot-linux-firmware -vxlspf -
+}
+# vim:set sw=2 et:



More information about the arch-commits mailing list