aboutsummaryrefslogtreecommitdiffstats
path: root/community/qt5-qtwebkit/APKBUILD
blob: 7b477f661f30b2b2b0429e9425bdead2a2582df9 (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
71
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=qt5-qtwebkit
pkgver=5.212.0_alpha4
_pkgver=${pkgver/_/-}
pkgrel=14
pkgdesc="Qt5 - QtWebKit components"
url="https://www.qt.io/developers/"
arch="all !armhf" # armhf blocked by qt5-qtdeclarative
arch="$arch !mips !mips64" # JavascriptCore FTBFS due to lack of JIT on mips
license="LGPL-2.1-only AND LGPL-3.0-only AND GPL-3.0-only AND Qt-GPL-exception-1.0"
depends_dev="
	qt5-qtbase-dev
	qt5-qtlocation-dev
	qt5-qtsensors-dev
	qt5-qtwebchannel-dev
	hyphen-dev
	libjpeg-turbo-dev
	icu-dev
	libxml2-dev
	libxslt-dev
	libxcomposite-dev
	libxrender-dev
	gst-plugins-base-dev
	libwebp-dev
	libexecinfo-dev
	"
makedepends="$depends_dev
	cmake
	bison
	flex
	gperf
	ruby
	"
subpackages="$pkgname-dev"

source="https://github.com/qtwebkit/qtwebkit/releases/download/qtwebkit-$_pkgver/qtwebkit-$_pkgver.tar.xz
	0001-musl-mcontext.patch
	0002-fix-build-with-bison3.7.patch
	0003-fix-compilation-with-python3.9.patch
	0004-glib-2.68.patch
	"
builddir="$srcdir/qtwebkit-$_pkgver"

build() {
	case "$CARCH" in
		ppc64le|s390x) _jit=FALSE ;;
		*) _jit=TRUE ;;
	esac

	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DPORT=Qt \
		-DENABLE_JIT=$_jit
	make -C build
}

package() {
	DESTDIR="$pkgdir" make -C build install

	install -d "$pkgdir"/usr/share/licenses
	ln -s /usr/share/licenses/qt5-base "$pkgdir"/usr/share/licenses/$pkgname
}

sha512sums="
33f11270bd030599beff9c1983a6c5ff2d61f407cc8a6825f7f405d46f9184c720fc7f60c7359f08f828db96a2170092875066a0d5c0a21ff09bc48a2603fbf6  qtwebkit-5.212.0-alpha4.tar.xz
11f6b4b5101f5e89917062483c0d55c4180dc4b8107bb3f6ad92ed4e56361ef1b604909056b383313c4072b1229dc9f6606ceacdd84efc1dc80dd1151294b195  0001-musl-mcontext.patch
cf21eff51e1026f4e506724a512b9925d4619909f5924bf01055244817ec9594e9d3ce105b510cd28ecce4772d122d1393fb7273501e20e16749f43282a3200b  0002-fix-build-with-bison3.7.patch
e4d4d4abfb8f2e9913c2f5cb7b3a73d5c613a8e8ced66ae1a7789faaa83a2bdf89ff29955d7e9b7bd7a0935ca2ddcad796cf371882e2bb38b4e69c1d528cfe75  0003-fix-compilation-with-python3.9.patch
f8a49e24023431ac37cff2b5bdf6f88d632021eb777668404956a4c6e4f8744f256205093dc5077325a33ec2a050b6e159dcf5d8cf3c1dda7d26ec0b37db95c3  0004-glib-2.68.patch
"