xmake.lua 1.2 KB

12345678910111213141516171819202122232425
  1. package("hwdata")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/vcrhonek/hwdata")
  4. set_description("hwdata contains various hardware identification and configuration data, such as the pci.ids and usb.ids databases.")
  5. set_license("GPL-2.0-or-later")
  6. add_urls("https://github.com/vcrhonek/hwdata/archive/refs/tags/$(version).tar.gz",
  7. "https://github.com/vcrhonek/hwdata.git")
  8. add_versions("v0.402", "e390fe2f5f5ef7ed9ccbe62eb7cd40d4ee2b57389e7869c0dc96433c81812e7a")
  9. add_versions("v0.401", "e9ff93b9807cc014ed8f7f5cb5dc2c31e714058c82ddc59b7355f5c57c9b759e")
  10. add_versions("v0.400", "05d96821aaae04be4e684eaf9ac22e08efe646321bc64be323b91b66e7e2095c")
  11. add_versions("v0.399", "74872355e14d5ddc48a0f63036227ffb5f7796a3012c6377ac1fc7432ffe2b41")
  12. add_versions("v0.397", "09eee39e73a63ab27af651ab6afdd13d6e5c3485872f2cd406b35e4d80ffdb0b")
  13. on_install("linux", "bsd", function (package)
  14. if package:is_plat("bsd") then
  15. io.replace("Makefile", "install -m 644", "ginstall -m 644", {plain = true})
  16. end
  17. import("package.tools.autoconf").install(package)
  18. end)
  19. on_test(function (package)
  20. assert(os.isfile(package:installdir("share/hwdata/pnp.ids")))
  21. end)