1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 pkgname=qt5-declarative
7 _commit=7024ac8358f9e576dff013ce2452c1daa0d34506
9 url='https://www.qt.io'
10 license=('GPL3' 'LGPL3' 'FDL' 'custom')
11 pkgdesc='Classes for QML and JavaScript languages'
13 makedepends=('python' 'vulkan-headers' 'git')
15 conflicts=('qtchooser')
17 source=(git+https://invent.kde.org/qt/qt/$_pkgfqn#commit=$_commit)
22 echo "5.15.2+kde+r"`git rev-list --count origin/5.15.2..$_commit`
29 git revert -n 568763928a78b52373932b01be17e040f7c3fa50 # Revert version bump
41 make INSTALL_ROOT="$pkgdir" install
43 # Symlinks for backwards compatibility
44 for b in "$pkgdir"/usr/bin/*; do
45 ln -s $(basename $b) "$pkgdir"/usr/bin/$(basename $b)-qt5
48 # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
49 find "$pkgdir/usr/lib" -type f -name '*.prl' \
50 -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
52 install -d "$pkgdir"/usr/share/licenses
53 ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}