浏览代码

lzav: add package (#2579)

star9029 2 年之前
父节点
当前提交
2c9e1e5ed5
共有 1 个文件被更改,包括 18 次插入0 次删除
  1. 18 0
      packages/l/lzav/xmake.lua

+ 18 - 0
packages/l/lzav/xmake.lua

@@ -0,0 +1,18 @@
+package("lzav")
+    set_kind("library", {headeronly = true})
+    set_homepage("https://github.com/avaneev/lzav")
+    set_description("Fast In-Memory Data Compression Algorithm (safe, inline C/C++) 460+MB/s compress, 2500+MB/s decompress, ratio better than LZ4")
+    set_license("MIT")
+
+    add_urls("https://github.com/avaneev/lzav/archive/refs/tags/$(version).tar.gz",
+             "https://github.com/avaneev/lzav.git")
+
+    add_versions("2.14", "98a715dc744d86224c941421beddaf3fcc0defd62ccfad7082eedf83be42dbbd")
+
+    on_install(function (package)
+        os.cp("lzav.h", package:installdir("include"))
+   end)
+
+    on_test(function (package)
+        assert(package:has_cfuncs("lzav_compress_default", {includes = "lzav.h", {configs = {languages = "c99"}}}))
+    end)