Browse Source

qoa: add package (#5375)

star9029 10 months ago
parent
commit
123ec42158
1 changed files with 17 additions and 0 deletions
  1. 17 0
      packages/q/qoa/xmake.lua

+ 17 - 0
packages/q/qoa/xmake.lua

@@ -0,0 +1,17 @@
+package("qoa")
+    set_kind("library", {headeronly = true})
+    set_homepage("https://github.com/phoboslab/qoa")
+    set_description("The “Quite OK Audio Format” for fast, lossy audio compression")
+    set_license("MIT")
+
+    add_urls("https://github.com/phoboslab/qoa.git")
+
+    add_versions("2024.07.02", "e0c69447d4d3945c3c92ac1751e4cdc9803a8303")
+
+    on_install(function (package)
+        os.cp("qoa.h", package:installdir("include"))
+    end)
+
+    on_test(function (package)
+        assert(package:has_cfuncs("qoa_encode_header", {includes = "qoa.h"}))
+    end)