blob: e3a720a1c2c6fe140e3e977ac3d24dccab6fb6d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
pkgbase=qtcreator-patches
pkgname=(qtcreator-patches qtcreator-devel-patches)
pkgver=20.0.0
_commit=20.0
pkgrel=1
pkgdesc='Lightweight, cross-platform integrated development environment'
arch=(x86_64)
url='https://www.qt.io'
license=("Apache-2.0")
depends=(qt6-base qt6-tools qt6-svg qt6-quick3d qt6-webengine qt6-serialport qt6-shadertools qt6-5compat
clang clazy yaml-cpp litehtml) # syntax-highlighting
makedepends=(cmake llvm python clang go)
options=(docs)
optdepends=('qt6-doc: integrated Qt documentation'
'qt6-examples: welcome page examples'
'qt6-translations: for other languages'
'gdb: debugger'
'cmake: cmake project support'
'x11-ssh-askpass: ssh support'
'git: git support'
'mercurial: mercurial support'
'bzr: bazaar support'
'valgrind: analyze support'
'perf: performer analyzer'
'mlocate: locator filter')
source=("fancymainwindow.patch"
"projectmodels.patch"
"navigationwidget.patch"
"breakpoint.patch"
"attach.patch"
"perf.patch"
"doxygen.patch"
"pythonproject.patch"
"appstackedpane.patch"
"pylsp.patch"
"pyindent.patch"
"multitextcursor.patch"
"center_on_scroll.patch"
"libsecret.patch"
"outputpanemanager.patch")
sha256sums=('351366320002004d0f32b18dc963a8373fe617e488e6d1d3d0cd740ac5ab832a'
'5f13820fd849ae6baf7ebb2b61bd8be2a18b605326fce3d84755f1ee6998d47e'
'8ef74fcac471d668875bf1ae645cbc991d5916441386576f63ff9f29770b77d3'
'bae874c52203cc82aead56ca98a1bcee81f663f847c977ddf85039f41db1ecf8'
'a58fdf8d5e13ba82cbc67133ddf961fd6012e9d6a9359b4ec49985cb3f650f73'
'1c84f6c65c7c2b5c31299800a9bc9bb0ef4462871e0d599755284b3d3f88132e'
'd2f1fcfc0dcc301ca65c141478957c938074b95ab063f682786226f576c8f9a8'
'5c12a2a62b59f5c3d74eaf6e75a8a0b947e45f59cc410dfbe8774fda3f2e2913'
'cfd6c29b03f892f908429439f3eb38cef26cc18d3b7a853b1add15ad19a0acf9'
'15007d429ecb7f6cdb4ac2bdbcd8efc836c02c22b4f4b28fd0cde48cd9638d7f'
'f94a87f46282b93679d7c3b26e060c7f88c7f64c692292efba2ee27e329692ac'
'6546401d89e6b4991e5051b138a92e4222923283183ec2d9b347752113b6dbe1'
'30c2c76f4f98a25a469e0e7ee76c5b1faf2b18a26d037739d8a3512c8b4372a5'
'e25f58bc4364e75987f9d9b908ad8e661e431f21ca8c7dd90d5b2824ae62952b'
'124805e1b237b44d0aec01d26e8a493763fc6477b80d4b5343c691d1343dabea')
prepare() {
cd $srcdir
git clone --branch ${_commit} --depth 1 --recurse-submodules=no --shallow-submodules git@github.com:qt-creator/qt-creator.git
cd qt-creator
git submodule update --init --depth 1 --recursive src/libs/3rdparty/googletest
git submodule update --init --depth 1 --recursive src/shared/qbs
git submodule update --init --depth 1 --recursive src/tools/perfparser
cd ..
patch -d qt-creator -p1 < projectmodels.patch
patch -d qt-creator -p1 < navigationwidget.patch
patch -d qt-creator -p1 < breakpoint.patch
patch -d qt-creator -p1 < attach.patch
patch -d qt-creator -p1 < perf.patch
patch -d qt-creator -p1 < doxygen.patch
patch -d qt-creator -p1 < pythonproject.patch
patch -d qt-creator -p1 < appstackedpane.patch
patch -d qt-creator -p1 < fancymainwindow.patch
patch -d qt-creator -p1 < pylsp.patch
patch -d qt-creator -p1 < libsecret.patch
patch -d qt-creator -p1 < pyindent.patch # Fix rename symbol under cursor
patch -d qt-creator -p1 < multitextcursor.patch # Fix delete and move cursor to left
patch -d qt-creator -p1 < outputpanemanager.patch
# patch -d qt-creator -p1 < center_on_scroll.patch
}
build() {
cmake -B build -S qt-creator \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBEXECDIR=lib \
-DWITH_DOCS=ON \
-DBUILD_DEVELOPER_DOCS=ON \
-DBUILD_QBS=OFF \
-DQTC_CLANG_BUILDMODE_MATCH=ON \
-DCLANGTOOLING_LINK_CLANG_DYLIB=ON
cmake --build build
export QT_QPA_PLATFORMTHEME=""; cmake --build build --target docs
}
package_qtcreator-patches() {
provides=('qtcreator')
conflicts=('qtcreator')
DESTDIR="$pkgdir" cmake --install build
# Install docs
cp -r build/share/doc "$pkgdir"/usr/share
}
package_qtcreator-devel-patches() {
provides=('qtcreator-devel')
conflicts=('qtcreator-devel')
pkgdesc+=' (development files)'
depends=(qtcreator-patches)
optdepends=()
DESTDIR="$pkgdir" cmake --install build --component Devel
}
|