From 9e730f52fd7a2dfecefc88ca620db855d6aa668b Mon Sep 17 00:00:00 2001 From: ruki Date: Sun, 17 Sep 2017 21:26:55 +0800 Subject: add builtin-packages --- xmake/packages/git/xmake.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 xmake/packages/git/xmake.lua (limited to 'xmake/packages/git/xmake.lua') diff --git a/xmake/packages/git/xmake.lua b/xmake/packages/git/xmake.lua new file mode 100644 index 000000000..e703a4246 --- /dev/null +++ b/xmake/packages/git/xmake.lua @@ -0,0 +1,16 @@ +package("git") + + set_homepage("https://git-scm.com/") + set_description("A free and open source distributed version control system") + add_imports("devel.package_manager", "lib.detect.find_tool") + + on_install(function (package) + package_manager.install("git") + end) + + on_install("windows", function (package) + end) + + on_test(function (package) + assert(find_tool("git")) + end) -- cgit v1.3.1