Browse Source

hwdata: add package (#7599)

* hwdata: add package

* Update xmake.lua

* Update xmake.lua

* test BSD

* limit

---------

Co-authored-by: Saikari <[email protected]>
star9029 2 months ago
parent
commit
bc1f2b8fd3
1 changed files with 18 additions and 0 deletions
  1. 18 0
      packages/h/hwdata/xmake.lua

+ 18 - 0
packages/h/hwdata/xmake.lua

@@ -0,0 +1,18 @@
+package("hwdata")
+    set_kind("library", {headeronly = true})
+    set_homepage("https://github.com/vcrhonek/hwdata")
+    set_description("hwdata contains various hardware identification and configuration data, such as the pci.ids and usb.ids databases.")
+    set_license("GPL-2.0-or-later")
+
+    add_urls("https://github.com/vcrhonek/hwdata/archive/refs/tags/$(version).tar.gz",
+             "https://github.com/vcrhonek/hwdata.git")
+
+    add_versions("v0.397", "09eee39e73a63ab27af651ab6afdd13d6e5c3485872f2cd406b35e4d80ffdb0b")
+
+    on_install("linux", function (package)
+        import("package.tools.autoconf").install(package)
+    end)
+
+    on_test(function (package)
+        assert(os.isfile(package:installdir("share/hwdata/pnp.ids")))
+    end)