1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
9 url='https://www.qt.io'
10 license=('GPL3' 'LGPL3' 'FDL' 'custom')
11 pkgdesc='Classes for making Qt applications scriptable. Provided for Qt 4.x compatibility'
15 _pkgfqn=${pkgname/5-/}
16 source=(git+https://code.qt.io/qt/$_pkgfqn.git#tag=v${pkgver}-lts)
27 # Disable LTO, see FS#73264
28 qmake ../${_pkgfqn} CONFIG-=ltcg
34 make INSTALL_ROOT="$pkgdir" install
36 # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
37 find "$pkgdir/usr/lib" -type f -name '*.prl' \
38 -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
40 install -d "$pkgdir"/usr/share/licenses
41 ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}
43 # Fix cmake dependency versions
44 sed -e "s|$pkgver\ |$_basever |" -i "$pkgdir"/usr/lib/cmake/*/*Config.cmake