xmake.lua 878 B

123456789101112131415161718192021222324252627
  1. package("pigz")
  2. set_kind("binary")
  3. set_homepage("http://zlib.net/pigz/")
  4. set_description("A parallel implementation of gzip for modern multi-processor, multi-core machines.")
  5. add_urls("https://github.com/madler/pigz.git")
  6. add_versions("2022.01.15", "cb8a432c91a1dbaee896cd1ad90be62e5d82d452")
  7. add_deps("zlib")
  8. on_install("linux", "macosx", "bsd", function (package)
  9. local configs = {}
  10. io.writefile("xmake.lua", [[
  11. add_rules("mode.release", "mode.debug")
  12. add_requires("zlib")
  13. target("pigz")
  14. set_kind("binary")
  15. add_files("**.c")
  16. add_syslinks("pthread", "dl")
  17. add_packages("zlib")
  18. ]])
  19. import("package.tools.xmake").install(package, configs)
  20. end)
  21. on_test(function (package)
  22. os.vrun("pigz --help")
  23. end)