OCaml 4.14.0 rebuild
[arch-packages.git] / qt6-tools / kde-unstable / PKGBUILD
blob177df15c40d40b4e48668f9886c74e1bc91b6ccb
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.4.0-beta2
7 pkgver=${_qtver/-/}
8 pkgrel=1
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 options=(debug)
18 _pkgfn=${pkgname/6-/}-everywhere-src-$_qtver
19 source=(https://download.qt.io/development_releases/qt/${pkgver%.*}/$_qtver/submodules/$_pkgfn.tar.xz)
20 sha256sums=('5742f3358e22afe7c51037e8d34613727f42ecfc376b3774209b65e3325e42b8')
22 prepare() {
23 # Fix build with system litehtml
24   sed -e '/qt_internal_set_exceptions_flags/d' -e '/qt_disable_warnings/d' -i $_pkgfn/src/assistant/CMakeLists.txt
27 build() {
28   cmake -B build -S $_pkgfn -G Ninja \
29     -DINSTALL_PUBLICBINDIR=usr/bin \
30     -DCMAKE_MESSAGE_LOG_LEVEL=STATUS
31   cmake --build build
34 package() {
35   DESTDIR="$pkgdir" cmake --install build
37 # Install symlinks for user-facing tools
38   cd "$pkgdir"
39   mkdir usr/bin
40   while read _line; do
41     ln -s $_line
42   done < "$srcdir"/build/user_facing_tool_links.txt
44   install -d "$pkgdir"/usr/share/licenses
45   ln -s /usr/share/licenses/qt6-base "$pkgdir"/usr/share/licenses/$pkgname