1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 # Contributor: Andrea Scarpino <andrea@archlinux.org>
10 url='https://www.qt.io'
12 pkgdesc='Qt module and API for defining 3D content in Qt Quick'
13 depends=(qt6-quicktimeline)
14 makedepends=(cmake ninja qt6-shadertools assimp)
15 optdepends=('qt6-shadertools: for shadergen' 'assimp: assimp import plugin')
17 _pkgfn="${pkgname/6-/}-everywhere-src-$_qtver"
18 source=(https://download.qt.io/official_releases/qt/${pkgver%.*}/$_qtver/submodules/$_pkgfn.tar.xz
19 qt6-quick3d-assimp-5.1.patch)
20 sha256sums=('be7ef8a36e84cb2f05edfd238d98899478eefbd56a5fecc7d570ce5848b5364b'
21 '49eb8feec3fdd1972266cf97fd8d40f0eb7e544c1957569c4b9f182348b17492')
24 patch -d $_pkgfn -p1 < qt6-quick3d-assimp-5.1.patch # Fix build with assimp 5.1
28 cmake -B build -S $_pkgfn -G Ninja
33 DESTDIR="$pkgdir" cmake --install build
35 install -d "$pkgdir"/usr/share/licenses
36 ln -s /usr/share/licenses/qt6-base "$pkgdir"/usr/share/licenses/$pkgname