git » qt5-quick3d.git » commit b664cac

Switch to bundled assimp, not compatible with 5.1

author Antonio Rojas
2021-11-20 12:53:00 UTC
committer Antonio Rojas
2021-11-20 12:53:00 UTC
parent 2ffabc6c87c6e3088702777440e50db610198f84

Switch to bundled assimp, not compatible with 5.1

PKGBUILD +10 -5

diff --git a/PKGBUILD b/PKGBUILD
index 6c1e1ef..4175216 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,19 +4,20 @@
 pkgname=qt5-quick3d
 _qtver=5.15.2
 pkgver=5.15.2+kde+r19
-pkgrel=1
+pkgrel=2
 _commit=3e3e53c834b25dc2959dd30f319d12d6f84ee1e3
 arch=('x86_64')
 url='https://www.qt.io'
 license=('GPL3')
 pkgdesc='Qt module and API for defining 3D content in Qt Quick'
 depends=('qt5-declarative')
-makedepends=('assimp' 'git')
-optdepends=('assimp: Import from assimp')
+makedepends=('git')
 groups=('qt' 'qt5')
 _pkgfqn=qtquick3d
-source=(git+https://invent.kde.org/qt/qt/$_pkgfqn#commit=$_commit)
-sha256sums=('SKIP')
+source=(git+https://invent.kde.org/qt/qt/$_pkgfqn#commit=$_commit
+        git+https://code.qt.io/qt/qtquick3d-assimp.git)
+sha256sums=('SKIP'
+            'SKIP')
 
 pkgver() {
   cd $_pkgfqn
@@ -28,6 +29,10 @@ prepare() {
 
   cd $_pkgfqn
   git revert -n 80196af36528e66826549a8b54d6cc5988db1622 # Revert version bump
+
+  git submodule init
+  git submodule set-url src/3rdparty/assimp/src "$srcdir"/qtquick3d-assimp
+  git submodule update
 }
 
 build() {