add shared-mime-info (#1787)
* add shared-mime-info * update pugixml * remove ninja requirement for meson * add ftp to libxml2 * add libxml2 legacy * fix shared-mime-info * update gettextpull/1794/head
parent
bd705be9db
commit
ec493cd3b3
5 changed files with 29 additions and 3 deletions
@ -0,0 +1,21 @@ |
||||
package("shared-mime-info") |
||||
|
||||
set_kind("binary") |
||||
set_homepage("https://www.freedesktop.org/wiki/Software/shared-mime-info/") |
||||
set_description("The shared-mime-info package contains the core database of common types and the update-mime-database command used to extend it.") |
||||
set_license("GPL-2.0") |
||||
|
||||
add_urls("https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/$(version)/shared-mime-info-$(version).tar.gz") |
||||
add_versions("2.2", "bcf5d552318136cf7b3ae259975f414fbcdc9ebce000c87cf1f0901ff14e619f") |
||||
|
||||
if is_plat("linux") then |
||||
add_extsources("apt::shared-mime-info") |
||||
end |
||||
add_deps("meson", "ninja", "glib", "libxml2", "gettext", "pkg-config") |
||||
on_install("macosx", "linux", function (package) |
||||
import("package.tools.meson").install(package) |
||||
end) |
||||
|
||||
on_test(function (package) |
||||
os.vrun("update-mime-database -v") |
||||
end) |
Loading…
Reference in new issue