1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 # Contributor: Andrea Scarpino <andrea@archlinux.org>
5 pkgname=qt6-declarative
10 url='https://www.qt.io'
11 license=(GPL3 LGPL3 FDL custom)
12 pkgdesc='Classes for QML and JavaScript languages'
14 makedepends=(cmake ninja python at-spi2-core qt6-shadertools qt6-languageserver qt6-tools)
15 optdepends=('qt6-languageserver: for qmlls')
16 conflicts=(qt6-quickcontrols2)
17 provides=(qt6-quickcontrols2)
18 replaces=(qt6-quickcontrols2)
20 _pkgfn=${pkgname/6-/}-everywhere-src-$_qtver
21 source=(https://download.qt.io/official_releases/qt/${pkgver%.*}/$_qtver/submodules/$_pkgfn.tar.xz)
22 sha256sums=('f7d631cd8ebc1491dad0f30f1b5326ae812bee4ad706e61157816a82bf588c97')
25 export CXXFLAGS+=" -ffat-lto-objects"
26 cmake -B build -S $_pkgfn -G Ninja \
27 -DINSTALL_PUBLICBINDIR=usr/bin \
28 -DCMAKE_MESSAGE_LOG_LEVEL=STATUS
33 DESTDIR="$pkgdir" cmake --install build
35 # Install symlinks for user-facing tools
40 done < "$srcdir"/build/user_facing_tool_links.txt
42 install -d "$pkgdir"/usr/share/licenses
43 ln -s /usr/share/licenses/qt6-base "$pkgdir"/usr/share/licenses/$pkgname