2
0

xmake.lua 848 B

123456789101112131415161718192021222324
  1. package("patchelf")
  2. set_kind("binary")
  3. set_homepage("https://github.com/NixOS/patchelf")
  4. set_description("A small utility to modify the dynamic linker and RPATH of ELF executables")
  5. set_license("GPL-3.0")
  6. add_urls("https://github.com/NixOS/patchelf/archive/refs/tags/$(version).tar.gz",
  7. "https://github.com/NixOS/patchelf.git")
  8. add_versions("0.18.0", "1451d01ee3a21100340aed867d0b799f46f0b1749680028d38c3f5d0128fb8a7")
  9. add_deps("autoconf", "automake", "libtool")
  10. on_install("linux", "bsd", "macosx", function (package)
  11. local configs = {}
  12. if package:is_debug() then
  13. table.insert(configs, "--enable-debug")
  14. end
  15. import("package.tools.autoconf").install(package, configs)
  16. end)
  17. on_test(function (package)
  18. os.run("patchelf --version")
  19. end)