xmake.lua 671 B

123456789101112131415161718
  1. package("makeself")
  2. set_kind("binary")
  3. set_homepage("https://makeself.io")
  4. set_description("A self-extracting archiving tool for Unix systems, in 100% shell script.")
  5. add_urls("https://github.com/megastep/makeself/archive/refs/tags/$(version).tar.gz", {version = function (version)
  6. return "release-" .. version
  7. end})
  8. add_versions("2.5.0", "705d0376db9109a8ef1d4f3876c9997ee6bed454a23619e1dbc03d25033e46ea")
  9. on_install("macosx", "linux", "msys", "bsd", function (package)
  10. os.cp("*.sh", package:installdir("bin"))
  11. end)
  12. on_test(function (package)
  13. os.runv("makeself.sh", {"--version"}, {shell = true})
  14. end)