[arch-commits] Commit in hwids/repos (testing-any testing-any/PKGBUILD)

Tobias Powalowski tpowa at archlinux.org
Tue Feb 9 10:06:12 UTC 2021


    Date: Tuesday, February 9, 2021 @ 10:06:12
  Author: tpowa
Revision: 407727

archrelease: copy trunk to testing-any

Added:
  hwids/repos/testing-any/
  hwids/repos/testing-any/PKGBUILD
    (from rev 407726, hwids/trunk/PKGBUILD)

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

Copied: hwids/repos/testing-any/PKGBUILD (from rev 407726, hwids/trunk/PKGBUILD)
===================================================================
--- testing-any/PKGBUILD	                        (rev 0)
+++ testing-any/PKGBUILD	2021-02-09 10:06:12 UTC (rev 407727)
@@ -0,0 +1,33 @@
+# Maintainer: Tom Gundersen <teg at jklm.no>
+pkgname=hwids
+pkgver=20201207
+pkgrel=1
+pkgdesc="hardware identification databases"
+makedepends=('git' 'unoconv')
+url=https://github.com/gentoo/hwids
+license=('GPL2')
+arch=('any')
+source=("git+https://github.com/gentoo/hwids.git#tag=${pkgname}-${pkgver}"
+	http://download.microsoft.com/download/7/E/7/7E7662CF-CBEA-470B-A97E-CE7CE0D98DC2/ISA_PNPID_List.xlsx)
+md5sums=('SKIP'
+         'd333b8c34e8fda9456d60e8ab999e94d')
+prepare() {
+  # from https://github.com/vcrhonek/hwdata/blob/master/Makefile
+  unoconv --stdout -f csv ${srcdir}/ISA_PNPID_List.xlsx | \
+	    tr ' ' ' ' | \
+	    sed -n \
+		-e 's/^\s*"\s*\(.*\)\s*"/\1/' \
+		-e 's/\s\{2,\}/ /g' \
+		-e 's/\s*(used as 2nd pnpid)\s*//' \
+		-e 's:^\(.*\)\s*,\s*\([a-zA-Z@]\{3\}\)\s*,\s*\([0-9]\+/[0-9]\+/[0-9]\+\):\2\t\1:p' | \
+	    sed 's/\s*$$//' | sort -u >${srcdir}/pnp.ids
+}
+
+package() {
+  cd hwids
+
+  for ids in pci.ids usb.ids; do
+    install -Dm644 "$ids" "${pkgdir}/usr/share/hwdata/${ids}"
+  done
+  install -Dm644 "${srcdir}/pnp.ids" ${pkgdir}/usr/share/hwdata/pnp.ids 
+}



More information about the arch-commits mailing list