sbcl 2.3.0 rebuild
[arch-packages.git] / qt6-tools / repos / extra-x86_64 / PKGBUILD
blobc6b48ae5d655a4ddbbda3920bd99ad1afacee9df
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.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='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/official_releases/qt/${pkgver%.*}/$_qtver/submodules/$_pkgfn.tar.xz)
20 sha256sums=('9e20562c6b04c21fbdb4ed89e59226169ffeaafaab8f45f7d81ea49b0e4b0933')
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