aboutsummaryrefslogtreecommitdiffstats
path: root/community/qt5-qtwebengine/APKBUILD
blob: 4009939f6c06a0ea58bf30ead4a17bf8f10f7e6f (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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=qt5-qtwebengine
pkgver=5.15.2
pkgrel=0
pkgdesc="Qt5 - QtWebEngine components"
url="https://www.qt.io/developers/"
# ppc64le and s390x are not supported
# mips is also not supported
# armhf blocked by qt5-qtdeclarative
arch="aarch64 armv7 x86 x86_64"
license="LGPL-2.1-only AND LGPL-3.0-only AND GPL-3.0-only AND Qt-GPL-exception-1.0"
depends_dev="
	ffmpeg-dev
	glib-dev
	gst-plugins-base-dev
	gstreamer-dev
	icu-dev
	libxcomposite-dev
	libxext-dev
	libxkbcommon-dev
	libxrender-dev
	libxslt-dev
	mesa-dev
	ninja
	"
makedepends="$depends_dev
	alsa-lib-dev
	bison
	bsd-compat-headers
	flex
	fontconfig-dev
	gperf
	gzip
	harfbuzz-dev
	jsoncpp-dev
	libevent-dev
	libjpeg-turbo-dev
	libpng-dev
	libsrtp-dev
	libvpx-dev
	libwebp-dev
	libxcursor-dev
	libxi-dev
	libxml2
	libxrandr-dev
	libxslt
	libxtst-dev
	linux-headers
	nss-dev
	opus-dev
	pcre-dev
	protobuf-dev
	qt5-qtbase-dev
	qt5-qtdeclarative-dev
	qt5-qtwebchannel-dev
	re2-dev
	ruby
	snappy-dev
	sqlite-dev
	yasm-dev
	zlib-dev
	python2
	"
subpackages="$pkgname-dev $pkgname-dbg"

case $pkgver in
	*_beta*|*_rc*) _rel=development_releases;;
	*) _rel=official_releases;;
esac

source="https://download.qt.io/$_rel/qt/${pkgver%.*}/$pkgver/submodules/qtwebengine-everywhere-src-$pkgver.tar.xz
	qt-musl-dispatch_to_musl.patch
	qt-musl-execinfo.patch
	qt-musl-mallinfo.patch
	qt-musl-off_t.patch
	qt-musl-pvalloc.patch
	qt-musl-resolve.patch
	qt-musl-siginfo_t.patch
	qt-musl-fpstate.patch
	qt-musl-pread-pwrite.patch
	qt-musl-sysreg-for__WORDSIZE.patch
	qt-musl-stackstart.patch
	qt-musl-thread-stacksize.patch
	qt-musl-elf-arm.patch
	qt-musl-crashpad.patch
	musl-sandbox.patch
	yasm-nls.patch
	nasm.patch
	musl-hacks.patch
	sandbox-sched_getparam.patch
	remove-glibc-check.patch
	"
builddir="$srcdir/qtwebengine-everywhere-src-$pkgver"

build() {
	qmake-qt5 QMAKE_EXTRA_ARGS+="-system-ffmpeg -system-opus -system-webp"
	make
}

package() {
	make install INSTALL_ROOT="$pkgdir"
	sed -i -e 's:-L/home[^ ]\+::g' "$pkgdir"/usr/lib/pkgconfig/*.pc

	# Drop QMAKE_PRL_BUILD_DIR because reference the build dir
	find "$pkgdir/usr/lib" -type f -name '*.prl' \
		-exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;

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

sha512sums="de64c30819f5e2f8620c853ff22b2f9717641477aef4432a552a72d1d67ed62ed61572afee6de3f2c9f32dee28f4f786ffd63fc465aa42c0ae1e87ea28341756  qtwebengine-everywhere-src-5.15.2.tar.xz
5ecbf435062b8565322dd1cbd0cbdb44f3daef264ab677fe22fe8cb400d4bb22281cc607ea419c7362c483312482632ed41bd67130413188425ef6e0ae184f07  qt-musl-dispatch_to_musl.patch
7084a07386fb9f66fbfeadac53869c0f386cea98dbb29787f030635bc8cd116b7459acafbe06540f1aef79d8a69817520ad18bcb9ac24954dd70773ef083537e  qt-musl-execinfo.patch
7f580b37907aeba8327c4eb1e46fd261ad78d93f1dd32991dfb373a7f75fb4dceb3d9302e3781c62f447e72c4edab0f7a7f4223d12dd98ec5e87e49f3f38a38a  qt-musl-mallinfo.patch
7eba28eb015f1a7e5cf70e9354fcd647b69f4e7c061b889a8c0d55f4a94a033f95d0252f9baebf13c3d501438074a05d547eef2c8cf898dc2c87cec3b60e76e0  qt-musl-off_t.patch
ac563e0c444a6d3214ff7465cad2c701692cfa90408c57243d3ae9459937c36e88acd57335bb90da85157e03865faaf17d61a767483b00ed8f3580ebf8a2fbb5  qt-musl-pvalloc.patch
8d95e4fcb463b5d2053c9538e66150ec9a3acddd7815cc34c8cd6fa115e49f1d602c4f1fc73f5e507a932c918e36c9c3d1386476dca91c5fc422906d0d88f610  qt-musl-resolve.patch
2fead16e7d7379b622da0e3172905444d9d72d1a53ff080327a3d59f60541c5c076d9b58f110b039da8c9ebc3b5efec53af118e1172efd01886ff9ac2b730d5f  qt-musl-siginfo_t.patch
059f22a594a046d552a33b17d811c50b645c4be11a49ed3b29a32ce38d501fd07c1e15a4e1075c46f984c850bf88aecb357e4310a62b30494ea25297055f05c8  qt-musl-fpstate.patch
b1f7823d0bdd14dbcb4dbd72ab2d16460d343722d2601921a50f8912ce580a632e0d7b01d7fea6f27ff5014a1f21595c6d8d4500b995bcc6db38cbd10ac4aa96  qt-musl-pread-pwrite.patch
987b9b35d04317e22ae2cce382e776f3309fc7fd4588e408cd6bed846f47620d01e2b9958cb60c84b8f6f496de6544a21ba399ba8b8f107b73df179794740092  qt-musl-sysreg-for__WORDSIZE.patch
d1662975ecd6a9fbf37ddba095764412bdaa1af78f171d5f45dd10f9d8aa41b401712cef2663c1c3689c8a273ea891538864dc0d5f7203e7bb3447c9b84db4ba  qt-musl-stackstart.patch
b37fbc4df03c82123f94982039defa12d9bb8c885c9dcf8fff556b5f9cc58182fa471f970cc3a5e2d5dbe964855f591b474366b6a8926d94ae6a78e883811c1a  qt-musl-thread-stacksize.patch
7e4e404913bfa23e4cf5ff7cd6abf6f57064da86a3740933eb84cf34b88db94dd605cd886b3554b24994c62f01ddeb328dd2f1ace0145b3cc670451761c2f5f9  qt-musl-elf-arm.patch
173c401e1a0daa7a1471880807e4fb0a74fc338a0f306dc067147878c29e7bb94cae43c37fe2bf21dd7a7ffd2d739697fd21d10c059ce647df01d8236612cc68  qt-musl-crashpad.patch
dec69ea8dd9cfa2973264ec405092d364513bbd47303a94c128d873a3de7294760340f3ad31753e6bddd42e98c547312e070b49a062f693b2e19aa01d772063a  musl-sandbox.patch
f6b1941e40f44b675ab554166e3cd8d3272b23f48571b4949b3af7b8e1c642ee84fe0ee26dd2457fc3bf20e9924cddb411e293b7a8a103029ee196587371a1e2  yasm-nls.patch
9add958caa0d6acb2866d3927aadfa6b378c92d62463f1b3d65ae1e5400915d89388ac54beb30c4d4d42d2901ee28f404d8574b771854556f6a75698301870eb  nasm.patch
b99eaa4a0b06ab1cb461fc4bfc7416c779ba1e847614b96f08de97a137a09577ea642813e5e3235167ccc5180c6ffcc06ebf2a61e3b4c210de9dee765e0e7404  musl-hacks.patch
dbe606be93377f094c6a1ab0358ae042f3e7aff95c635b07ebc04aa3173f7221a478fd544e8347152a4ca125a837d6da774929423868d5c9d5bd6165bdd1ba6d  sandbox-sched_getparam.patch
7153ce7372fed73dccb676079bc5af37f56be113f42ee64ed48cd7997dc2a4aa287523f36f0b8d3c717f1c4ad7f796843850b86a2dce50de5f0ade6a47785bee  remove-glibc-check.patch"