From 2a24b22dcf5296e1818afb378e76ccf5c285da0f Mon Sep 17 00:00:00 2001 From: star9029 Date: Sun, 24 Nov 2024 14:38:32 +0800 Subject: [PATCH] arkari: add package (#5818) --- packages/a/arkari/xmake.lua | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 packages/a/arkari/xmake.lua diff --git a/packages/a/arkari/xmake.lua b/packages/a/arkari/xmake.lua new file mode 100644 index 000000000..330d54168 --- /dev/null +++ b/packages/a/arkari/xmake.lua @@ -0,0 +1,25 @@ +package("arkari") + set_kind("toolchain") + set_homepage("https://github.com/KomiMoe/Arkari") + set_description("Yet another llvm based obfuscator based on goron.") + set_license("Apache-2.0") + + local version_map = { + ["19.1.3"] = "1.6.0" + } + + add_urls("https://github.com/KomiMoe/Arkari/releases/download/$(version)/$(version).7z", {version = function (version) + local llvm_ver = tostring(version) + local obf_ver = version_map[llvm_ver] + return string.format("Win64-MT-%s-obf%s", llvm_ver, obf_ver) + end}) + + add_versions("19.1.3", "9a181798ef3648cf8acb2f83941792f948d589a94b9d579a783b97331770ce93") + + on_install("windows|x64", function (package) + os.mv("*", package:installdir()) + end) + + on_test(function (package) + os.vrun("llvm-config --version") + end)