aboutsummaryrefslogtreecommitdiffstats
path: root/testing/qt5-qtwebengine/APKBUILD
blob: ee31d337cfe6984ac62986d064ec935e8e3d29a8 (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
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=qt5-qtwebengine
pkgver=5.10.1
pkgrel=4
pkgdesc="Qt5 - QtWebEngine components"
url="http://qt-project.org/"
# ppc64le: not supported
# x86: fails to build
arch="all !ppc64le !x86"
license="LGPL-2.0 with exceptions or GPL-3.0 with exceptions"
depends=""
depends_dev="qt5-qtdeclarative-dev qt5-qtwebchannel-dev gstreamer-dev gst-plugins-base-dev
	libxslt-dev mesa-dev icu-dev libxext-dev glib-dev libxcomposite-dev
	libxrender-dev ninja ffmpeg-dev
	"
makedepends="$depends_dev
	alsa-lib-dev
	bison
	bsd-compat-headers
	ffmpeg-dev
	flex
	fontconfig-dev
	gperf
	gzip
	harfbuzz-dev
	icu-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
	paxmark
	pcre-dev
	protobuf-dev
	qt5-qtbase-dev
	re2-dev
	ruby
	snappy-dev
	sqlite-dev
	yasm-dev
	zlib-dev
	"
subpackages="$pkgname-dev"

_ver=${pkgver/_/-}
_ver=${_ver/beta0/beta}
_ver=${_ver/rc0/rc}
_V=${_ver/rc/RC}
case $pkgver in
*_beta*|*_rc*) _rel=development_releases;;
*) _rel=official_releases;;
esac

source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qtwebengine-everywhere-src-$_V.tar.xz
	arm-void-is-not-android.patch
	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-serialio.patch
	qt-musl-siginfo_t.patch
	qt-musl-stackstart.patch
	qtwebkit-chartype.patch
	musl-sandbox.patch
	yasm-nls.patch
	"
builddir="$srcdir"/qtwebengine-everywhere-src-$_V

build() {
	cd "$builddir"
	export NINJA_PATH="/usr/bin/ninja"
	qmake-qt5 QMAKE_EXTRA_ARGS+="-webengine-ffmpeg -webengine-opus -webengine-webp"
	make || paxmark -m src/core/release/mksnapshot && make
}

package() {
	cd "$builddir"
	make install INSTALL_ROOT="$pkgdir" || return 1
	# remove rpath
#	chrpath --delete "$pkgdir"/usr/lib/qt5/libexec/* || return 1
	sed -i -e 's:-L/home[^ ]\+::g' "$pkgdir"/usr/lib/pkgconfig/*.pc
}

sha512sums="dc1b15eb857cb9ff3ef98a2f90cfec8c40429eea292bbed6a323cf1c4b044f3b73efaf51833fe8d9ca2ecc4f99d7092590a1a34248a9ab14fa5a38d4335f4925  qtwebengine-everywhere-src-5.10.1.tar.xz
5e017e6500af56d0e608839c466782193ab3f6e5d01938b84b7f9c86fbb826e140f9fca789a23e7a7431ba42377be328a8bfcacbf7c302746de79f7857f2832d  arm-void-is-not-android.patch
e8ca442eebc47a01ef51304a38062dcf3a334c8985b67c1fcefbbc530a5c773d26086b3ba7909e051fe5fea8b7784336b08f9899a3c6ab2508f7251db122e5de  qt-musl-dispatch_to_musl.patch
3af77688071c5d42bb8e902e059f2c1c956ed531c5072f16dfc02cff091df4828fda2cce887deba49b2e8c4c4195754c2ccb2a2238b9b827eb4d58398e1f0e07  qt-musl-execinfo.patch
819786f225c2312cf1afeceed24968204095db0ff4e5739f6b46bfec639e26a9d1702e0d7ce8493562f9d4c08d5a31ba48bdc47553ac78ef5763cb4ec1e57e5c  qt-musl-mallinfo.patch
7eba28eb015f1a7e5cf70e9354fcd647b69f4e7c061b889a8c0d55f4a94a033f95d0252f9baebf13c3d501438074a05d547eef2c8cf898dc2c87cec3b60e76e0  qt-musl-off_t.patch
ac563e0c444a6d3214ff7465cad2c701692cfa90408c57243d3ae9459937c36e88acd57335bb90da85157e03865faaf17d61a767483b00ed8f3580ebf8a2fbb5  qt-musl-pvalloc.patch
8d95e4fcb463b5d2053c9538e66150ec9a3acddd7815cc34c8cd6fa115e49f1d602c4f1fc73f5e507a932c918e36c9c3d1386476dca91c5fc422906d0d88f610  qt-musl-resolve.patch
c39b4c39ad3e297dc4f2508af9fb6b1618e8f6fac4399e41b5bde00a1e79cc0cd24af8b8c01bfe61e4748b2b74778a06afff166095e59baf491d6fc56f3537f7  qt-musl-serialio.patch
2fead16e7d7379b622da0e3172905444d9d72d1a53ff080327a3d59f60541c5c076d9b58f110b039da8c9ebc3b5efec53af118e1172efd01886ff9ac2b730d5f  qt-musl-siginfo_t.patch
1acac5b3c94096f3ff05105008a971d44512074b09a2c1313b48e10cb1bcefb94d8a6d29c305c00d461c532afbeed2f2953ffc8c722d9000e178d977c8566f33  qt-musl-stackstart.patch
20e8262292aa55c2a30f66570e702cbf3539e03ca563be987de734c50b6e0ccceccab64d1b11e55dde01868abd965470eb1c1fbf0d56917fa370e500c90a9660  qtwebkit-chartype.patch
635d77109b5ce9bc9697d621f1bf98193903e2ac69fc4079fb92f175daa80147fed8ae15544d239ef680e120474d8f811002935ef1a078836ba01695f9ddfcb9  musl-sandbox.patch
f6b1941e40f44b675ab554166e3cd8d3272b23f48571b4949b3af7b8e1c642ee84fe0ee26dd2457fc3bf20e9924cddb411e293b7a8a103029ee196587371a1e2  yasm-nls.patch"