xmake.lua 931 B

12345678910111213141516171819202122
  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.397", "09eee39e73a63ab27af651ab6afdd13d6e5c3485872f2cd406b35e4d80ffdb0b")
  9. if is_plat("bsd") then
  10. add_patches("v0.397", "patches/v0.397/bsd-makefile.patch", "d14efe1d4727fc6ec4365c0fab10688c83a314776caa8575a61bb0287e92b2c9")
  11. end
  12. on_install("linux", "bsd", function (package)
  13. import("package.tools.autoconf").install(package)
  14. end)
  15. on_test(function (package)
  16. assert(os.isfile(package:installdir("share/hwdata/pnp.ids")))
  17. end)