summaryrefslogtreecommitdiff
path: root/legacy
diff options
context:
space:
mode:
authorErmine <mustela@erminea.space>2024-08-31 16:55:38 +0000
committerErmine <mustela@erminea.space>2024-09-01 12:54:04 +0000
commit9ae293a5df760534546abc4e2a4d1e88aa0f78fe (patch)
tree8038acef1748776fddd8b9930f2e11378d4b7463 /legacy
parent140959e74d7db644d6fe242a36aab2ec6c2e3939 (diff)
downloadpackages-9ae293a5df760534546abc4e2a4d1e88aa0f78fe.tar.gz
packages-9ae293a5df760534546abc4e2a4d1e88aa0f78fe.tar.bz2
packages-9ae293a5df760534546abc4e2a4d1e88aa0f78fe.tar.xz
packages-9ae293a5df760534546abc4e2a4d1e88aa0f78fe.zip
legacy/hwids: move from user/
hwids is an abandoned project. It is now superseded by hwdata which is more complete.
Diffstat (limited to 'legacy')
-rw-r--r--legacy/hwids/APKBUILD67
1 files changed, 67 insertions, 0 deletions
diff --git a/legacy/hwids/APKBUILD b/legacy/hwids/APKBUILD
new file mode 100644
index 000000000..183bda57d
--- /dev/null
+++ b/legacy/hwids/APKBUILD
@@ -0,0 +1,67 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=hwids
+pkgver=20200306
+pkgrel=0
+pkgdesc="Hardware identification databases"
+url="https://github.com/gentoo/hwids/"
+arch="noarch"
+options="!check" # No test suite, just databases.
+license="BSD-3-Clause OR GPL-2.0+"
+subpackages="$pkgname-net $pkgname-pci $pkgname-udev $pkgname-usb"
+depends="$subpackages"
+makedepends="eudev-dev"
+subpackages="$subpackages $pkgname-doc"
+source="https://github.com/gentoo/hwids/archive/hwids-$pkgver.tar.gz"
+builddir="$srcdir/hwids-hwids-$pkgver"
+
+build() {
+ make UDEV=yes
+}
+
+package() {
+ make DESTDIR="$pkgdir" DOCDIR="/usr/share/doc/$pkgname-$pkgver" \
+ MISCDIR="/usr/share/hwdata" UDEV=yes install
+}
+
+_mv() {
+ pkgdesc="$pkgdesc ($1)"
+ shift
+ depends=""
+ mkdir -p "$subpkgdir"/usr/share/hwdata
+ for _file in $*; do
+ mv "$pkgdir"/usr/share/hwdata/$_file "$subpkgdir"/usr/share/hwdata
+ done
+}
+
+usb() {
+ replaces="hwdata-usb"
+ provides="hwdata-usb=$pkgver-r$pkgrel"
+ _mv "USB IDs" usb.ids
+}
+
+pci() {
+ replaces="hwdata-pci"
+ provides="hwdata-pci=$pkgver-r$pkgrel"
+ _mv "PCI IDs" pci.ids
+}
+
+net() {
+ replaces="hwdata-oui"
+ provides="hwdata-oui=$pkgver-r$pkgrel"
+ license="Public-Domain"
+ _mv "Networking OUIs" oui.txt iab.txt
+}
+
+udev() {
+ install_if="hwids=$pkgver-r$pkgrel eudev"
+ install_if="hwids-pci=$pkgver-r$pkgrel eudev"
+ install_if="hwids-usb=$pkgver-r$pkgrel eudev"
+ pkgdesc="$pkgdesc (udev integration)"
+
+ mkdir -p "$subpkgdir"/
+ mv "$pkgdir"/lib "$subpkgdir"/
+ mv "$pkgdir"/etc "$subpkgdir"/
+}
+
+sha512sums="eff1d2783925ca459b387fbaa5cf68a98aa4209ab8509ad92a902b4d02cc7f4a47e5506c2beed4c792d24a8ab636ad77b376a92b59ae4f605d1b5258350ff250 hwids-20200306.tar.gz"