xmake.lua 549 B

12345678910111213141516
  1. package("cgetopt")
  2. set_homepage("https://github.com/xq114/cgetopt/")
  3. set_description("A GNU getopt() implementation written in pure C.")
  4. set_license("zlib")
  5. add_urls("https://github.com/xq114/cgetopt/archive/v$(version).tar.gz")
  6. add_versions("1.0", "c93fe91041752f4231e07894d24354ee079317e40c30897bd664766ef4872279")
  7. on_install(function (package)
  8. import("package.tools.xmake").install(package)
  9. end)
  10. on_test(function (package)
  11. assert(package:has_cfuncs("getopt", {includes = "getopt.h"}))
  12. end)