aboutsummaryrefslogtreecommitdiffstats
path: root/community/qt6-qtquick3d/APKBUILD
blob: 3acbe1ebceb661d0790d281d90f24f58e3478d6f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=qt6-qtquick3d
pkgver=6.1.2
pkgrel=0
pkgdesc="Qt module and API for defining 3D content in Qt Quick"
url="https://qt.io/"
# s390x and mips64 build fails
# Shader baking failed: Cannot resolve expression type.
arch="all !s390x !mips64"
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-qtshadertools-dev
	vulkan-headers
	"
makedepends="$depends_dev
	cmake
	perl
	"
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() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

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

sha512sums="
9881feb858af095b7c4b65db059603c03161bdf80368ca241b70f3dd76fa7b1bfdc45720a5b48b6c3e073df47fb3d8e6ddc3fd400fe8c222c41cced9a0d2caac  qtquick3d-everywhere-src-6.1.2.tar.xz
"