archrelease: copy trunk to extra-x86_64
[arch-packages.git] / qt5-quick3d / trunk / PKGBUILD
blobdb699259c939605ef328956e2c4b8458dc70d269
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 pkgname=qt5-quick3d
5 _basever=5.15.3
6 pkgver=5.15.3+kde+r2
7 pkgrel=1
8 _commit=1ede2ac20170357b3e8d7d9810e5474e08170827
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=('qt5-declarative')
14 makedepends=('git' 'assimp')
15 optdepends=('assimp: assimp import plugin')
16 groups=('qt' 'qt5')
17 _pkgfqn=${pkgname/5-/}
18 source=(git+https://invent.kde.org/qt/qt/$_pkgfqn#commit=$_commit
19         qt5-quick3d-assimp-5.1.patch)
20 sha256sums=('SKIP'
21             '57a3ac54c46f86d1f99ce20653bb34215cbd65fbd36f7ee802360336e88f268e')
22 options=(debug)
24 pkgver() {
25   cd $_pkgfqn
26   echo "$_basever+kde+r"`git rev-list --count v$_basever-lts-lgpl..$_commit`
29 prepare() {
30   mkdir -p build
31   patch -d $_pkgfqn -p1 < qt5-quick3d-assimp-5.1.patch # Fix build with assimp 5.1
34 build() {
35   cd build
37   qmake ../${_pkgfqn}
38   make
41 package() {
42   cd build
43   make INSTALL_ROOT="$pkgdir" install
45   # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
46   find "$pkgdir/usr/lib" -type f -name '*.prl' \
47     -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
49   install -d "$pkgdir"/usr/share/licenses
50   ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}