forked from semios/ports
45 lines
1.1 KiB
Python
45 lines
1.1 KiB
Python
from lib.make import *
|
|
from lib import cpp
|
|
|
|
|
|
version("2.5.1")
|
|
description("The FreeDesktop Shared MIMO Info database and utilities")
|
|
maintainer("sisungo <[email protected]>")
|
|
source_url("https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/2.5.1/shared-mime-info-2.5.1.tar.gz")
|
|
|
|
builddep("shortcut/c++")
|
|
builddep("shortcut/meson")
|
|
builddep("libintl-dev @target")
|
|
builddep("gettext")
|
|
builddep("libxml2-dev @target")
|
|
builddep("glib-dev @target")
|
|
|
|
|
|
def build():
|
|
cpp.meson_setup([
|
|
f"--prefix={get_prefix('shared-mime-info')}",
|
|
"-Dbuild-tools=true",
|
|
"-Dbuild-translations=true",
|
|
"-Dbuild-tests=false",
|
|
"-Dbuild-spec=false",
|
|
])
|
|
cpp.meson_compile()
|
|
cpp.meson_install()
|
|
|
|
on_build(build)
|
|
|
|
|
|
def pack(composer):
|
|
composer.makedir("lib")
|
|
composer.makedir("share")
|
|
composer.add_dir("share/mime")
|
|
composer.add_dir("share/pkgconfig", "lib/pkgconfig")
|
|
composer.add_dir("share/locale")
|
|
composer.add_dir("bin")
|
|
|
|
package("shared-mime-info")
|
|
dep("libxml2 @same-arch")
|
|
dep("libglib @same-arch")
|
|
dep("libcxx @same-arch")
|
|
on_pack(pack)
|