aboutsummaryrefslogtreecommitdiffstats
path: root/testing/qt-creator/APKBUILD
blob: 0367c1d32a1e0f980e258703d86bbb3f7bbba989 (plain) (blame)
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
# Contributor: Natanael Copa <ncopa@alpinelinux.org>
# Contributor: Alexey Minnekhanov <alexeymin@postmarketos.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=qt-creator
pkgver=9.0.0
pkgrel=0
pkgdesc="Lightweight and cross-platform C++ IDE"
url="https://qt-project.org/wiki/Category:Tools::QtCreator"
arch="x86_64 aarch64" # qt6-qtwebengine
license="GPL-3.0-only WITH Qt-GPL-exception-1.0"
depends="
	qt6-qtbase-sqlite
	qt6-qtbase-dev
	qt6-qttools-dev
"
makedepends="
	botan-dev
	clang-dev
	clang-static
	cmake
	elfutils-dev
	lld
	llvm15-dev
	llvm15-static
	qt6-qt5compat-dev
	qt6-qtdeclarative-dev
	qt6-qtquick3d-dev
	qt6-qtserialport-dev
	qt6-qtshadertools-dev
	qt6-qtsvg-dev
	qt6-qtwebengine-dev
	samurai
"
ldpath="/usr/lib/qtcreator:/usr/lib/qtcreator/plugins"
source="
	https://download.qt.io/official_releases/qtcreator/${pkgver%.*}/$pkgver/qt-creator-opensource-src-$pkgver.tar.xz
	llvm-include.patch
	fix-execinfo.patch
	fix-malloc-trim.patch
	"

builddir="$srcdir"/qt-creator-opensource-src-$pkgver

build() {
	export CC=clang
	export CXX=clang++
	export CFLAGS="$CFLAGS -flto=thin"
	export CXXFLAGS="$CXXFLAGS -flto=thin"
	export LDFLAGS="$LDFLAGS -fuse-ld=lld"
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=RelWithDebInfo \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_QBS=OFF \
		-DBUILD_PLUGIN_CLANGFORMAT=ON \
		-DBUILD_WITH_PCH=OFF \
		-DCLANGTOOLING_LINK_CLANG_DYLIB=ON
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --install build
}

sha512sums="
3aae3e6836c9e3967dbda3044b1dc4f9c6f01194dc1535c07bd7999f955ce04047ca7ca21202a1770d876a71026b62eafbc66093526bfdba88beef79de687750  qt-creator-opensource-src-9.0.0.tar.xz
c02a11c00ce00a69006598aababacaf9e8cc6b7b95801e705a3176312073dbd0dfc44c47a14986bcd25823da1416c8d68e77dca33a43f994270384dee3a4b28b  llvm-include.patch
43d73c9cd272ee849a5d85490d351c71b786d7ce6b5b46c6ec13642329c14bacc84a122f0bfbb445841aedef8d1cc9fe2485c0c8db24080b5a9dd4380e36c58d  fix-execinfo.patch
b6d55b642b20fdfc5d8256aa155e38ab4e564c463a2743883017f47e8adce5516101d07ab6894295d5abbdd48472cc6372306e8d7285a10d8ee5931a919d11b4  fix-malloc-trim.patch
"