blob: 0ced19e0175ffefac012ea65cdf65140b8e272a8 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001#
2# This is free software, licensed under the GNU General Public License v2.
3# See /LICENSE for more information.
4#
5
6include $(TOPDIR)/rules.mk
7
8PKG_NAME:=hwdata
9PKG_VERSION:=0.359
10PKG_RELEASE:=1
11
12PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
13PKG_SOURCE_URL:=https://codeload.github.com/vcrhonek/hwdata/tar.gz/v$(PKG_VERSION)?
14PKG_HASH:=07bf89f5a1b341427536b4fffe300c7848988367a1bce20fc4b1ab7e7629f861
15
16PKG_MAINTAINER:=
17PKG_LICENSE:=GPL-2.0-or-later XFree86-1.0
18PKG_LICENSE_FILES:=LICENSE
19
20include $(INCLUDE_DIR)/package.mk
21
22define Package/pciids
23 SECTION:=utils
24 CATEGORY:=Utilities
25 TITLE:=PCI ID list
26 URL:=https://github.com/vcrhonek/hwdata
27endef
28
29define Package/usbids
30 SECTION:=utils
31 CATEGORY:=Utilities
32 TITLE:=USB ID list
33 URL:=https://github.com/vcrhonek/hwdata
34endef
35
36define Package/pciids/install
37 $(INSTALL_DIR) $(1)/usr/share/hwdata
38 $(INSTALL_DATA) $(PKG_BUILD_DIR)/pci.ids $(1)/usr/share/hwdata
39endef
40
41define Package/usbids/install
42 $(INSTALL_DIR) $(1)/usr/share/hwdata
43 $(INSTALL_DATA) $(PKG_BUILD_DIR)/usb.ids $(1)/usr/share/hwdata
44endef
45
46$(eval $(call BuildPackage,pciids))
47$(eval $(call BuildPackage,usbids))