xmake.lua 1.1 KB

1234567891011121314151617181920212223
  1. package("which")
  2. set_kind("binary")
  3. set_homepage("https://www.gnu.org/software/which/")
  4. set_description("shows the full path of (shell) commands")
  5. add_urls("https://ftpmirror.gnu.org/gnu/which/which-$(version).tar.gz",
  6. "https://ftp.gnu.org/gnu/which/which-$(version).tar.gz",
  7. "https://carlowood.github.io/which/which-$(version).tar.gz",
  8. "https://mirrors.ustc.edu.cn/gnu/which/which-$(version).tar.gz")
  9. add_versions("2.16", "0ac8502e9985a3ac6b0e2aa4f2a60f91cad0dc0cca6dc9c1c142ebba4b8dd664")
  10. add_versions("2.17", "176fe9c451487eda787dd58d9469d48c95509f49dbb34a574004a936905dd6da")
  11. add_versions("2.19", "7d79b874f65118ac846a0deb31a8fbd6816cd81e74930299c82103765d45cd52")
  12. add_versions("2.20", "d417b65c650d88ad26a208293c1c6e3eb60d4b6d847f01ff8f66aca63e2857f8")
  13. add_versions("2.21", "f4a245b94124b377d8b49646bf421f9155d36aa7614b6ebf83705d3ffc76eaad")
  14. on_install("@bsd", "@linux", "@macosx", function (package)
  15. import("package.tools.autoconf").install(package)
  16. end)
  17. on_test(function (package)
  18. os.vrun("which -v")
  19. end)