feat: add gtk basic packages

Signed-off-by: sisungo <[email protected]>
This commit is contained in:
sisungo committed 2026-10-21 14:15:08 +00:00
1 parent 7cce55fdee
commit 86e2bd5252
3 files changed
+148

No files matched your search

+41
View File
@@ -0,0 +1,41 @@
from lib.make import *
from lib import cpp, arch
version("2.38.0")
description("GNOME accessibility toolkit.")
maintainer("sisungo <[email protected]>")
source_url("https://download.gnome.org/sources/atk/2.38/atk-2.38.0.tar.xz")
builddep("shortcut/c++")
builddep("shortcut/meson")
builddep("glib-dev @target")
builddep("gobject-introspection @target")
builddep("glib-tools")
builddep("libexpat")
def build():
cpp.meson_setup([
"--prefix=/",
f"--libdir={get_prefix('libatk')}/lib",
f"--includedir={get_prefix('libatk-dev')}/include",
"-Dintrospection=true",
])
cpp.meson_compile()
cpp.meson_install()
on_build(build)
package("libatk")
dep("libglib @same-arch")
dep("libgobject @same-arch")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["lib"])
package("libatk-dev")
dep("libatk (same)")
dep("glib-dev @same-arch")
dep("semi-libc-dev @same-arch")
cpp.use_auto_pack(["dev"])
+39
View File
@@ -0,0 +1,39 @@
from lib.make import *
from lib import cpp, arch
version("1.5.10")
description("a library for handling OpenGL function pointer management")
maintainer("sisungo <[email protected]>")
source_url("https://download.gnome.org/sources/libepoxy/1.5/libepoxy-1.5.10.tar.xz")
builddep("shortcut/c++")
builddep("shortcut/meson")
builddep("libegl-dev @target")
builddep("libopengl-dev @target")
builddep("libglesv2-dev @target")
builddep("libexpat")
def build():
cpp.meson_setup([
"--prefix=/",
f"--libdir={get_prefix('libepoxy')}/lib",
f"--includedir={get_prefix('libepoxy-dev')}/include",
"-Dx11=false",
])
cpp.meson_compile()
cpp.meson_install()
on_build(build)
package("libepoxy")
dep("semi-libc @same-arch")
cpp.use_auto_pack(["lib"])
package("libepoxy-dev")
dep("libepoxy (same)")
dep("libegl-dev @same-arch")
dep("semi-libc-dev @same-arch")
cpp.use_auto_pack(["dev"])
+68
View File
@@ -0,0 +1,68 @@
import os
from lib.make import *
from lib import cpp
version("2.44.8")
description("a library that loads image data in various formats and stores it as linear buffers in memory")
maintainer("sisungo <[email protected]>")
source_url("https://download.gnome.org/sources/gdk-pixbuf/2.44/gdk-pixbuf-2.44.8.tar.xz")
builddep("shortcut/c")
builddep("shortcut/meson")
builddep("libjpeg-turbo-dev @target")
builddep("libtiff-dev @target")
builddep("libpng-dev @target")
builddep("glib-dev @target")
builddep("gobject-introspection @target")
builddep("shared-mime-info")
builddep("glib-tools")
builddep("libexpat")
def build():
cpp.meson_setup([
"--prefix=/",
f"--libdir={get_prefix('gdk-pixbuf')}/lib",
f"--includedir={get_prefix('gdk-pixbuf-dev')}/include",
"-Dpng=enabled",
"-Dtiff=enabled",
"-Djpeg=enabled",
"-Dgif=enabled",
"-Dglycin=disabled",
"-Dbuiltin_loaders=all",
"-Dintrospection=enabled",
"-Drelocatable=false",
"-Dman=false",
"-Dtests=false",
"-Dinstalled_tests=false",
"-Dthumbnailer=enabled",
])
cpp.meson_compile()
cpp.meson_install()
os.makedirs("lib/gdk-pixbuf-2.0/2.10.0", exist_ok=True)
with open("lib/gdk-pixbuf-2.0/2.10.0/loaders.cache", "wt+") as fd:
fd.write("# empty")
on_build(build)
package("gdk-pixbuf")
dep("libpng @same-arch")
dep("libglib @same-arch")
dep("libgobject @same-arch")
dep("libgmodule @same-arch")
dep("libgio @same-arch")
dep("libjpeg-turbo @same-arch")
dep("libtiff @same-arch")
cpp.use_auto_pack(["bin", "lib"])
package("gdk-pixbuf-dev")
dep("libpng-dev @same-arch")
dep("glib-dev @same-arch")
dep("libjpeg-turbo-dev @same-arch")
dep("libtiff-dev @same-arch")
dep("shared-mime-info")
dep("gdk-pixbuf (same)")
cpp.use_auto_pack(["dev"])