aboutsummaryrefslogtreecommitdiffstats
path: root/community/falkon/APKBUILD
blob: 10c719a8b9942ce65295fc29cf35f2ad96455a33 (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
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=falkon
pkgver=3.1.0
pkgrel=4
pkgdesc="Cross-platform Qt Web Browser"
url="https://github.com/KDE/falkon"
# mips, ppc64le and s390x blocked by qt5-qtwebengine, armhf blocked by qt5-qtdeclarative
arch="all !ppc64le !s390x !armhf !mips !mips64"
license="GPL-3.0-or-later"
depends="qt5-qtbase-sqlite"
makedepends="cmake python3 qt5-qtbase-dev extra-cmake-modules qt5-qtdeclarative-dev
	qt5-qtwebengine-dev xcb-util-dev libxcb-dev qt5-qtx11extras-dev qt5-qttools-dev
	ki18n-dev karchive-dev kwallet-dev kio-dev kcrash-dev kcoreaddons-dev purpose-dev"
checkdepends="xvfb-run"
subpackages="$pkgname-lang $pkgname-bash-completion:bashcomp:noarch"
source="https://download.kde.org/stable/falkon/${pkgver%.*}/falkon-$pkgver.tar.xz
	5eedcb5b44da4895cf5a729d3e0a0dc2f5b45394.patch
	execinfo_h.patch
	fix-qt5.15-build.patch"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		-DBUILD_TESTING=ON \
		$CMAKE_CROSSOPTS
	make
}

check() {
	# Requires working OpenGL
	xvfb-run ctest -E '(falkon-webviewtest|falkon-webtabtest|falkon-tabmodeltest)'
}

package() {
	make DESTDIR="$pkgdir" install
}

bashcomp() {
	depends=""
	pkgdesc="Bash completions for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel bash-completion"

	amove usr/share/bash-completion/completions
}

sha512sums="c04f97869150b8ab81ae7b01c7137e35ca5c3103c057e01896454bbeda1075372a7831d2dfe7ab66794de0983593df6e46eff47c5cdc2bc959f81b022506f054  falkon-3.1.0.tar.xz
9ac674e0063574a2117ed81d7209c8bdfd605c39e6eca0dcb2882b5323ff24ae49240837b9aaefea97ac894a7d4becfd1a972e3258bee593da28a471fa7bb2c4  5eedcb5b44da4895cf5a729d3e0a0dc2f5b45394.patch
5492b986b8f2156fe8a7af7382c54a82efdc8ccafd5f56a545de8f76d4fb5d4427e75f1387a36d1def3a7667ad44eae75a99580afcacde8b9ab83367cfb75077  execinfo_h.patch
a1e6c79985b1416e5b4b7fba520d4764bec93828f7ae978d8238bf0a814d34d5c9cf1832f548b9616bed7a77fb7b11d476a84f1c9505e9335bd8af4077ffd860  fix-qt5.15-build.patch"