db-move: moved polari from [testing] to [extra] (x86_64)
[arch-packages.git] / qt6-tools / repos / extra-x86_64 / PKGBUILD
blobdd4fcda38fb6a71fc1b24934791f2c1d0b29e594
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
7 pkgver=${_qtver/-/}
8 pkgrel=4
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/official_releases/qt/${pkgver%.*}/$_qtver/submodules/$_pkgfn.tar.xz)
19 sha256sums=('49c33d96b0a44988be954269b8ce3d1a495b439726e03a6be7c0d50a686369c4')
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   cmake -B build -S $_pkgfn -G Ninja \
28     -DINSTALL_PUBLICBINDIR=usr/bin \
29     -DCMAKE_MESSAGE_LOG_LEVEL=STATUS
30   cmake --build build
33 package() {
34   DESTDIR="$pkgdir" cmake --install build
36 # Install symlinks for user-facing tools
37   cd "$pkgdir"
38   mkdir usr/bin
39   while read _line; do
40     ln -s $_line
41   done < "$srcdir"/build/user_facing_tool_links.txt
43   install -d "$pkgdir"/usr/share/licenses
44   ln -s /usr/share/licenses/qt6-base "$pkgdir"/usr/share/licenses/$pkgname