# qt6-base - Qt 6 base libraries
# Generated from manifest.tsv by gen-ports.py. Edit the manifest, not this file,
# unless the package needs something the template cannot express - in which case
# drop a `recipe.local` beside it and it will be preserved.
name=qt6-base
version=6.10.1
release=1
desc="Qt 6 base libraries"
url="https://qt.io/"
license="LGPL-3.0-only GPL-3.0-only"
depend="glibc libx11 wayland mesa fontconfig sqlite libressl zlib pcre2"
makedepend="cmake ninja"
source="https://download.qt.io/official_releases/qt/6.10/6.10.1/submodules/qtbase-everywhere-src-6.10.1.tar.xz"
sha256="SKIP"

build() {
	cmake -S "qtbase-everywhere-src-6.10.1" -B build -G Ninja \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DCMAKE_BUILD_TYPE=Release \
		-DBUILD_SHARED_LIBS=ON
	ninja -C build -j"$JOBS"
}

package() {
	DESTDIR="$pkgdir" ninja -C build install
}
