upgpkg: maxima 5.46.0-9 (sbcl rebuild)
[arch-packages.git] / qt6-tools / kde-unstable / PKGBUILD
blob0ecac035c4484a6342045051a1ea5510f172c10c
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Maintainer: Felix Yan <felixonmars@archlinux.org>
3 # Contributor: Andrea Scarpino <andrea@archlinux.org>
5 pkgname=qt6-tools
6 _qtver=6.5.0-rc
7 pkgver=${_qtver/-/}
8 pkgrel=2
9 arch=(x86_64)
10 url='https://www.qt.io'
11 license=(GPL3 LGPL3 FDL custom)
12 pkgdesc='A cross-platform application and UI framework (Development Tools, QtHelp)'
13 depends=(qt6-base)
14 makedepends=(cmake ninja qt6-declarative clang llvm litehtml)
15 optdepends=('qt6-declarative: for qdoc' 'clang: for qdoc and lupdate' 'litehtml: for assistant')
16 groups=(qt6)
17 _pkgfn=${pkgname/6-/}-everywhere-src-$_qtver
18 source=(https://download.qt.io/development_releases/qt/${pkgver%.*}/$_qtver/submodules/$_pkgfn.tar.xz)
19 sha256sums=('cfddcf7da38a1d33fddb34035367e8ebe60e366922080f26ad8ffb8fe9c436f6')
21 prepare() {
22 # Fix build with system litehtml
23   sed -e '/qt_internal_set_exceptions_flags/d' -e '/qt_disable_warnings/d' -i $_pkgfn/src/assistant/CMakeLists.txt
26 build() {
27 # Using clang because of https://bugreports.qt.io/browse/QTBUG-112332
28   cmake -B build -S $_pkgfn -G Ninja \
29     -DINSTALL_PUBLICBINDIR=usr/bin \
30     -DCMAKE_CXX_COMPILER=clang++ \
31     -DCMAKE_MESSAGE_LOG_LEVEL=STATUS
32   cmake --build build
35 package() {
36   DESTDIR="$pkgdir" cmake --install build
38 # Install symlinks for user-facing tools
39   cd "$pkgdir"
40   mkdir usr/bin
41   while read _line; do
42     ln -s $_line
43   done < "$srcdir"/build/user_facing_tool_links.txt
45   install -d "$pkgdir"/usr/share/licenses
46   ln -s /usr/share/licenses/qt6-base "$pkgdir"/usr/share/licenses/$pkgname