archrelease: copy trunk to extra-x86_64
[arch-packages.git] / qt6-declarative / trunk / PKGBUILD
blob072e5526c47e526c2a01270abd89ffc7049b6cd0
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
6 _qtver=6.3.1
7 pkgver=${_qtver/-/}
8 pkgrel=1
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=(qt6-base)
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)
19 groups=(qt6)
20 options=(debug)
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')
25 build() {
26   export CXXFLAGS+=" -ffat-lto-objects"
27   cmake -B build -S $_pkgfn -G Ninja \
28     -DINSTALL_PUBLICBINDIR=usr/bin
29   cmake --build build
32 package() {
33   DESTDIR="$pkgdir" cmake --install build
35 # Install symlinks for user-facing tools
36   cd "$pkgdir"
37   mkdir usr/bin
38   while read _line; do
39     ln -s $_line
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