From 091e60c6db01915ccfa1de11ca5071f529718fd0 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 23 Nov 2023 11:32:18 +0800 Subject: [PATCH] add makeself (#2855) --- packages/m/makeself/xmake.lua | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 packages/m/makeself/xmake.lua diff --git a/packages/m/makeself/xmake.lua b/packages/m/makeself/xmake.lua new file mode 100644 index 000000000..c8368289a --- /dev/null +++ b/packages/m/makeself/xmake.lua @@ -0,0 +1,18 @@ +package("makeself") + set_kind("binary") + set_homepage("https://makeself.io") + set_description("A self-extracting archiving tool for Unix systems, in 100% shell script.") + + add_urls("https://github.com/megastep/makeself/archive/refs/tags/$(version).tar.gz", {version = function (version) + return "release-" .. version + end}) + + add_versions("2.5.0", "705d0376db9109a8ef1d4f3876c9997ee6bed454a23619e1dbc03d25033e46ea") + + on_install("macosx", "linux", "msys", "bsd", function (package) + os.cp("*.sh", package:installdir("bin")) + end) + + on_test(function (package) + os.runv("makeself.sh", {"--version"}, {shell = true}) + end)