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)
15 optdepends=('qt6-languageserver: for qmlls')
16 conflicts=(qt6-quickcontrols2)
17 provides=(qt6-quickcontrols2)
18 replaces=(qt6-quickcontrols2)
21 _pkgfn=${pkgname/6-/}-everywhere-src-$_qtver
22 source=(https://download.qt.io/official_releases/qt/${pkgver%.*}/$_qtver/submodules/$_pkgfn.tar.xz)
23 sha256sums=('03e7694123820fcca397f95ce312e0b7f3039493c8754c836da098a1a04346e8')
26 export CXXFLAGS+=" -ffat-lto-objects"
27 cmake -B build -S $_pkgfn -G Ninja \
28 -DINSTALL_PUBLICBINDIR=usr/bin
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