1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
8 _commit=ccd0284235e9e3e1f97d808125af5024d3f04140
10 url='https://www.qt.io'
12 pkgdesc='Qt module and API for defining 3D content in Qt Quick'
13 depends=('qt5-declarative')
14 makedepends=('git' 'assimp')
15 optdepends=('assimp: assimp import plugin')
17 _pkgfqn=${pkgname/5-/}
18 source=(git+https://invent.kde.org/qt/qt/$_pkgfqn#commit=$_commit
19 qt5-quick3d-assimp-5.1.patch)
21 '57a3ac54c46f86d1f99ce20653bb34215cbd65fbd36f7ee802360336e88f268e')
25 echo "$_basever+kde+r"`git rev-list --count v$_basever-lts-lgpl..$_commit` | sed -e 's|+kde+r0||'
30 patch -d $_pkgfqn -p1 < qt5-quick3d-assimp-5.1.patch # Fix build with assimp 5.1
42 make INSTALL_ROOT="$pkgdir" install
44 # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
45 find "$pkgdir/usr/lib" -type f -name '*.prl' \
46 -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
48 install -d "$pkgdir"/usr/share/licenses
49 ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}