1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
3 # Contributor: Imanol Celaya <ornitorrincos@archlinux-es.org>
4 # Contributor: Lukas Jirkovsky <l.jirkovsky@gmail.com>
5 # Contributor: Dan Vratil <progdan@progdansoft.com>
6 # Contributor: thotypous <matiasΘarchlinux-br·org>
7 # Contributor: delor <bartekpiech gmail com>
10 pkgname=(qtcreator qtcreator-devel)
14 pkgdesc='Lightweight, cross-platform integrated development environment'
16 url='https://www.qt.io'
18 depends=(qt6-tools qt6-svg qt6-quick3d qt6-webengine qt6-serialport qt6-shadertools qt6-5compat
19 clang=$_clangver clazy yaml-cpp litehtml) # syntax-highlighting
20 makedepends=(cmake llvm python)
21 optdepends=('qt6-doc: integrated Qt documentation'
22 'qt6-examples: welcome page examples'
24 'cmake: cmake project support'
25 'x11-ssh-askpass: ssh support'
27 'mercurial: mercurial support'
29 'valgrind: analyze support'
30 'perf: performer analyzer'
31 'mlocate: locator filter')
32 source=(https://download.qt.io/official_releases/qtcreator/${pkgver%.*}/$pkgver/qt-creator-opensource-src-$pkgver.tar.xz)
33 sha256sums=('4161b07dcec0fc8f31529c7db610b717314128da007a2efa85aa9bc33097a163')
37 cmake -B build -S qt-creator-opensource-src-$pkgver \
38 -DCMAKE_INSTALL_PREFIX=/usr \
39 -DCMAKE_INSTALL_LIBEXECDIR=lib \
41 -DBUILD_DEVELOPER_DOCS=ON \
43 -DQTC_CLANG_BUILDMODE_MATCH=ON \
44 -DCLANGTOOLING_LINK_CLANG_DYLIB=ON
46 cmake --build build --target docs
50 DESTDIR="$pkgdir" cmake --install build
52 cp -r build/share/doc "$pkgdir"/usr/share
54 install -Dm644 qt-creator-opensource-src-$pkgver/LICENSE.GPL3-EXCEPT "$pkgdir"/usr/share/licenses/qtcreator/LICENSE.GPL3-EXCEPT
57 package_qtcreator-devel() {
58 pkgdesc+=' (development files)'
62 DESTDIR="$pkgdir" cmake --install build --component Devel