feat: add gtk & dependencies

Signed-off-by: sisungo <[email protected]>
This commit is contained in:
2026-09-11 07:32:43 +00:00
parent d510d14bc9
commit cd7b10690e
10 changed files with 538 additions and 0 deletions
+43
View File
@@ -0,0 +1,43 @@
from lib.make import *
from lib import cpp, arch
version("4.23.3")
description("The main GTK4 library.")
maintainer("sisungo <[email protected]>")
source_url("https://download.gnome.org/sources/gtk/4.23/gtk-4.23.3.tar.xz")
builddep("shortcut/c++")
builddep("shortcut/meson")
builddep("glib-dev @target")
builddep("gdk-pixbuf-dev @target")
builddep("gobject-introspection @target")
builddep("glib-tools")
builddep("libwayland-dev @target")
builddep("wayland-protocols @target")
builddep("libpango-dev @target")
builddep("libcairo-gobject-dev @target")
builddep("libepoxy-dev @target")
builddep("libxkbcommon-dev @target")
builddep("libgraphene-dev @target")
def build():
cpp.meson_setup([
"-Dx11-backend=false",
"-Dmedia-gstreamer=enabled",
"-Dprint-cups=disabled",
"-Dvulkan=enabled",
"-Dintrospection=enabled",
])
cpp.meson_compile()
cpp.meson_install()
on_build(build)
package("gtk4")
cpp.use_auto_pack(["bin", "lib"])
package("gtk4-dev")
cpp.use_auto_pack(["dev"])