# Maintainer: Bart Ribbers pkgname=qt6-qtquick3d pkgver=6.5.2 pkgrel=0 pkgdesc="Qt module and API for defining 3D content in Qt Quick" url="https://qt.io/" arch="all" license="LGPL-2.1-only AND LGPL-3.0-only AND GPL-3.0-only AND Qt-GPL-exception-1.0" depends_dev=" qt6-qtdeclarative-dev qt6-qtquicktimeline-dev qt6-qtshadertools-dev vulkan-headers " makedepends="$depends_dev assimp-dev cmake perl samurai " subpackages="$pkgname-dev" options="!check" # No tests builddir="$srcdir/qtquick3d-everywhere-src-${pkgver/_/-}" case $pkgver in *_alpha*|*_beta*|*_rc*) _rel=development_releases;; *) _rel=official_releases;; esac source="https://download.qt.io/$_rel/qt/${pkgver%.*}/${pkgver/_/-}/submodules/qtquick3d-everywhere-src-${pkgver/_/-}.tar.xz" build() { export CFLAGS="$CFLAGS -g1 -flto=auto" export CXXFLAGS="$CXXFLAGS -g1 -flto=auto" cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=RelWithDebInfo \ -DCMAKE_INSTALL_PREFIX=/usr cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" 2a26f4fa4e4d88b4205813a8bba1c83811354e5ad5e7aa832fd46c5956b46d15e690c359d83f85018c1430e15edd151207411a50227855de4fc8451db710ace2 qtquick3d-everywhere-src-6.5.2.tar.xz "