2
0

xmake.lua 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. package("git-crypt")
  2. set_kind("binary")
  3. set_homepage("https://www.agwa.name/projects/git-crypt/")
  4. set_description("Transparent file encryption in git")
  5. set_license("GPL-3.0")
  6. add_urls("https://github.com/AGWA/git-crypt/archive/refs/tags/$(version).tar.gz",
  7. "https://github.com/AGWA/git-crypt.git")
  8. add_versions("0.7.0", "2210a89588169ae9a54988c7fdd9717333f0c6053ff704d335631a387bd3bcff")
  9. if is_plat("linux", "macosx", "mingw@macosx") then
  10. add_deps("openssl", {host = true})
  11. end
  12. on_install("linux", "macosx", "mingw@macosx", function (package)
  13. io.writefile("xmake.lua", [[
  14. add_rules("mode.debug", "mode.release")
  15. add_requires("openssl")
  16. target("git-crypt")
  17. set_kind("binary")
  18. add_packages("openssl")
  19. add_files("*.cpp|*-unix.cpp|*-win32.cpp")
  20. add_headerfiles("*.hpp|*-unix.hpp|*-win32.hpp")
  21. ]])
  22. import("package.tools.xmake").install(package)
  23. end)
  24. on_test(function (package)
  25. os.vrun("git-crypt --version")
  26. end)