blob: f3fb1417b39b84286dee50192ac1a4e20ed647e8 (
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
|
# Maintainer: Donald Carr<sirspudd@gmail.com>
#set -o errexit
#set -o xtrace
# Uncomment for a debug build
#_qmake_args="CONFIG+=debug"
_building=true
pkgname=qtcreator-prerelease
_pkgvermajmin=15.0
_pkgver=${_pkgvermajmin}.0
_verpostfix="beta2"
pkgver="${_pkgver}${_verpostfix}"
pkgrel=1
_urlbase="https://download.qt.io/official_releases"
if [[ -n $_verpostfix ]]; then
_pkgver=${_pkgver}-${_verpostfix}
_urlbase="https://download.qt.io/development_releases"
fi
_source_archive_name=qt-creator-opensource-src-${_pkgver}
pkgdesc='Qt Creator prerelease/latest'
arch=('x86_64')
url='http://qt.io/ide'
license=('GPL')
provides=('qtcreator')
conflicts=('qtcreator')
depends=('python-beautifulsoup4' 'qt6-base' 'qt6-tools' 'qt6-declarative' 'litehtml')
install=qtcreator-prerelease.install
optdepends=('qt6-doc: integrated Qt documentation'
'qt6-examples: welcome page examples'
'qt6-translations: for other languages'
'gdb: debugger'
'cmake: cmake project support'
'openssh-askpass: ssh support'
'git: git support'
'mercurial: mercurial support'
'bzr: bazaar support'
'valgrind: analyze support')
makedepends=('gcc' 'mold' 'qt6-base' 'patchelf' 'ninja')
source=("${_urlbase}/qtcreator/${_pkgvermajmin}/${_pkgver}/${_source_archive_name}.tar.xz")
sha512sums=('bf38f1e09f5fd5735fa7dab4aeb11b8e4c6286c2e3b9a0f758b5340642df63a5c1546e0629b9fb279f96453e1b34f7c2237844047cab8883a11e6dd6f92aa495')
prepare() {
local working_dir=${srcdir}/${_source_archive_name}
cd ${working_dir}
}
build() {
local working_dir=${srcdir}/${_source_archive_name}
local build_dir=${working_dir}/build
rm -Rf ${build_dir}
mkdir -p ${build_dir}
cd ${build_dir}
qt_cmake_in_play=$(which qt-cmake || echo /usr/lib/qt6/bin/qt-cmake)
echo "Using qt-cmake: ${qt_cmake_in_play}"
${qt_cmake_in_play} \
-G Ninja \
-DCMAKE_INSTALL_PREFIX=/usr \
-DQT_CHAINLOAD_TOOLCHAIN_FILE=${startdir}/toolchain.cmake \
-DCMAKE_BUILD_TYPE=Release \
-DWITH_DOCS=ON \
-DBUILD_QBS=OFF \
-DWITH_QMLDESIGNER=OFF \
-DBUILD_WITH_CRASHPAD=OFF \
${working_dir}
ninja all
}
package() {
local working_dir=${srcdir}/${_source_archive_name}
local build_dir=${working_dir}/build
cd ${build_dir}
DESTDIR=${pkgdir} ninja install
}
|