Compare commits

..
Author SHA1 Message Date
sisungo b4dfc2b731 feat: add package gobject-introspection
Signed-off-by: sisungo <[email protected]>
2026-08-20 15:02:35 +08:00
2 changed files with 53 additions and 31 deletions
@@ -0,0 +1,53 @@
from lib.make import *
from lib import cpp
version("1.86.0")
description("to describe the APIs and collect them in a uniform, machine readable format")
maintainer("sisungo <[email protected]>")
source_url("https://download.gnome.org/sources/gobject-introspection/1.86/gobject-introspection-1.86.0.tar.xz")
builddep("shortcut/c")
builddep("shortcut/meson")
builddep("pkgconf")
builddep(f"glib-dev @{arch.get_target()}")
builddep(f"libffi-dev @{arch.get_target()}")
builddep(f"setuptools.py @{arch.get_target()}")
builddep(f"libpython-dev @{arch.get_target()}")
builddep("libexpat")
builddep("flex")
builddep("bison")
def build():
cpp.meson_setup([
f"--prefix={get_prefix('gobject-introspection')}",
f"-Dgir_dir_prefix=/lib/{arch.get_target()}/include/gir",
"--bindir=/bin",
])
cpp.meson_compile()
cpp.meson_install()
on_build(build)
def pack(composer):
composer.add_dir("bin", "bin")
composer.add_dir("lib", "lib")
composer.add_dir("include", "include")
composer.makedir("share")
composer.add_dir("share/gir-1.0", "share/gir-1.0")
composer.add_dir("share/gobject-introspection-1.0", "share/gobject-introspection-1.0")
def pack_docs(composer):
composer.makedir("share")
composer.add_dir("share/man", "share/man")
package("gobject-introspection")
dep("glib-dev @same-arch")
dep("libffi-dev @same-arch")
dep("semi-libc @same-arch")
on_pack(pack)
package("gobject-introspection-docs")
on_pack(pack_docs)
-31
View File
@@ -1,31 +0,0 @@
from lib import arch, cpp
from lib.make import *
version("2.15.3")
description("an XML toolkit implemented in C, originally developed for the GNOME Project")
maintainer("sisungo <[email protected]>")
source_url("https://download.gnome.org/sources/libxml2/2.15/libxml2-2.15.3.tar.xz")
builddep("shortcut/autotools")
builddep("shortcut/cmake")
def build():
cpp.configure([
f"--libdir={get_prefix('libxml2')}/lib",
f"--includedir={get_prefix('libxml2-dev')}/include",
])
cpp.make()
cpp.make_install()
on_build(build)
package("libxml2")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["lib"])
package("libxml2-dev")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["dev"])