OCaml 4.13.1 rebuild, fixes FS#72998
[arch-packages.git] / qt6-quick3d / trunk / PKGBUILD
blob8134f56be7cb522765d290c575ff77ce9b0aac86
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 # Contributor: Andrea Scarpino <andrea@archlinux.org>
5 pkgname=qt6-quick3d
6 _qtver=6.2.2
7 pkgver=${_qtver/-/}
8 pkgrel=1
9 arch=(x86_64)
10 url='https://www.qt.io'
11 license=(GPL3)
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')
16 groups=(qt6)
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')
23 prepare() {
24   patch -d $_pkgfn -p1 < qt6-quick3d-assimp-5.1.patch # Fix build with assimp 5.1
27 build() {
28   cmake -B build -S $_pkgfn -G Ninja
29   cmake --build build
32 package() {
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