xmake.lua 889 B

123456789101112131415161718192021
  1. package("shared-mime-info")
  2. set_kind("binary")
  3. set_homepage("https://www.freedesktop.org/wiki/Software/shared-mime-info/")
  4. set_description("The shared-mime-info package contains the core database of common types and the update-mime-database command used to extend it.")
  5. set_license("GPL-2.0")
  6. add_urls("https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/$(version)/shared-mime-info-$(version).tar.gz")
  7. add_versions("2.2", "bcf5d552318136cf7b3ae259975f414fbcdc9ebce000c87cf1f0901ff14e619f")
  8. if is_plat("linux") then
  9. add_extsources("apt::shared-mime-info")
  10. end
  11. add_deps("meson", "ninja", "glib", "libxml2", "gettext", "pkg-config")
  12. on_install("macosx", "linux", function (package)
  13. import("package.tools.meson").install(package)
  14. end)
  15. on_test(function (package)
  16. os.vrun("update-mime-database -v")
  17. end)