From 6550bbfdceb40872cf52bbf139f937cb9e38ebbe Mon Sep 17 00:00:00 2001 From: star9029 Date: Sun, 29 Sep 2024 14:51:05 +0800 Subject: [PATCH] qoa: add package --- packages/q/qoa/xmake.lua | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 packages/q/qoa/xmake.lua diff --git a/packages/q/qoa/xmake.lua b/packages/q/qoa/xmake.lua new file mode 100644 index 00000000000..fe4ab22f3f9 --- /dev/null +++ b/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)