You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.1 KiB

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