feat: add package qtbase

Signed-off-by: sisungo <[email protected]>
This commit is contained in:
sisungo committed 2026-10-29 06:42:24 +00:00
1 parent 07a5703b91
commit 7cc126be06
1 file changed
+85
+85
View File
@@ -0,0 +1,85 @@
from lib import cpp
from lib.make import *
version("6.11.2")
description("Qt Base (Core, Gui, Widgets, Network, ...)")
maintainer("sisungo <[email protected]>")
source_url("https://download.qt.io/official_releases/qt/6.11/6.11.2/submodules/qtbase-everywhere-src-6.11.2.tar.xz")
builddep("shortcut/c++")
builddep("shortcut/cmake")
builddep("libdbus-dev @target")
builddep("libwayland-dev @target")
builddep("libpcre2-dev @target")
builddep("libzlib-dev @target")
builddep("libicu4c-dev @target")
def build():
cpp.configure([
"-prefix=/",
"-bindir", f"{get_prefix('qtbase')}/bin",
"-libdir", f"{get_prefix('libqtbase')}/lib",
"-headerdir", f"{get_prefix('libqtbase-dev')}/include",
"-plugindir", f"{get_prefix('libqtbase')}/plugins",
"-libexecdir", f"{get_prefix('libqtbase')}/libexec",
"-qmldir", f"{get_prefix('libqtbase-dev')}/qml",
"-sbomdir", f"{get_prefix('libqtbase-dev')}/sbom",
"-docdir", f"{get_prefix('libqtbase-docs')}/doc",
"-translationdir", f"{get_prefix('libqtbase')}/translations",
"-sysconfdir=/var/config/qt",
"-cmake-generator", "Ninja",
"-sbom",
"-rpath",
"-linker", "lld",
"-pkg-config",
"-force-system-libs",
"-doubleconversion", "system",
"-glib", "no",
"-inotify",
"-icu", "yes",
"-jemalloc", "no",
"-pcre", "system",
"-zlib", "system",
"-syslog", "yes",
"-libproxy", "yes",
"-cups", "no",
"-emojisegmenter", "yes",
"-fontconfig", "yes",
"-freetype", "system",
"-harfbuzz", "system",
"-gtk", "no",
"-opengl", "desktop",
"-opengles3",
"-egl", "yes",
"-qpa", "wayland",
"-default-qpa", "wayland",
"-libinput",
"-mtdev",
"-xkbcommon",
"-gif", "yes",
"-ico", "yes",
"-libpng", "system",
"-libjpeg", "system",
"-sqlite", "system",
])
on_build(build)
package("libqtbase")
dep("semi-libc @same-arch")
dep("libcxx @same-arch")
cpp.use_auto_pack(["lib"])
package("qtbase")
dep("libqtbase (same)")
cpp.use_auto_pack(["lib"])
package("libqtbase-dev")
dep("libqtbase (same)")
dep("libcxx-dev @same-arch")
cpp.use_auto_pack(["dev"])
package("qtbase-docs")
on_pack(lambda x: print("x"))