archrelease: copy trunk to extra-x86_64
[arch-packages.git] / qt5-declarative / trunk / PKGBUILD
blob1daca86a6f4106a58f17a04e6605507583e9cf9d
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
4 pkgname=qt5-declarative
5 _basever=5.15.9
6 pkgver=5.15.9+kde+r25
7 pkgrel=1
8 _commit=c21cad9f47eb7baa40341ec9b70dadb86f65a179
9 arch=('x86_64')
10 url='https://www.qt.io'
11 license=('GPL3' 'LGPL3' 'FDL' 'custom')
12 pkgdesc='Classes for QML and JavaScript languages'
13 depends=('qt5-base')
14 makedepends=('python' 'vulkan-headers' 'git')
15 groups=('qt' 'qt5')
16 conflicts=('qtchooser')
17 _pkgfqn=${pkgname/5-/}
18 source=(git+https://invent.kde.org/qt/qt/$_pkgfqn#commit=$_commit)
19 sha256sums=('SKIP')
21 pkgver() {
22   cd $_pkgfqn
23   echo "$_basever+kde+r"`git rev-list --count v$_basever-lts-lgpl..$_commit` | sed -e 's|+kde+r0||'
26 prepare() {
27   mkdir -p build
30 build() {
31   cd build
33   qmake ../${_pkgfqn} CONFIG+=fat-static-lto
34   make
37 package() {
38   cd build
39   make INSTALL_ROOT="$pkgdir" install
41   # Symlinks for backwards compatibility
42   for b in "$pkgdir"/usr/bin/*; do
43     ln -s $(basename $b) "$pkgdir"/usr/bin/$(basename $b)-qt5
44   done
46   # Drop QMAKE_PRL_BUILD_DIR because reference the build dir
47   find "$pkgdir/usr/lib" -type f -name '*.prl' \
48     -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;
50   install -d "$pkgdir"/usr/share/licenses
51   ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/${pkgname}