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.

50 lines
1.2 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.342
  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:=f1e79131c870dce4a3b4b75edeefc5c9aef416d488a131c66cb6893be743be63
  12. PKG_MAINTAINER:=
  13. PKG_LICENSE:=GPL-2.0-or-later XFree86-1.0
  14. PKG_LICENSE_FILES:=LICENSE
  15. PKG_INSTALL:=1
  16. PKG_BUILD_PARALLEL:=1
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/pciids
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. TITLE:=USB ID list
  22. URL:=https://github.com/vcrhonek/hwdata
  23. endef
  24. define Package/usbids
  25. SECTION:=utils
  26. CATEGORY:=Utilities
  27. TITLE:=PCI ID list
  28. URL:=https://github.com/vcrhonek/hwdata
  29. endef
  30. define Package/pciids/install
  31. $(INSTALL_DIR) $(1)/usr/share/hwdata
  32. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/hwdata/pci.ids $(1)/usr/share/hwdata
  33. endef
  34. define Package/usbids/install
  35. $(INSTALL_DIR) $(1)/usr/share/hwdata
  36. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/hwdata/usb.ids $(1)/usr/share/hwdata
  37. endef
  38. $(eval $(call BuildPackage,pciids))
  39. $(eval $(call BuildPackage,usbids))