aboutsummaryrefslogtreecommitdiffstats
path: root/testing/wpewebkit/APKBUILD
blob: 6fc9724bfc0fd4827e93e1917402046941da0036 (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
# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=wpewebkit
pkgver=2.33.2
pkgrel=1
pkgdesc="WebKit port optimized for embedded devices"
url="https://wpewebkit.org"
arch="all !x86 !riscv64" # x86: Out of memory, riscv64: fails to link
license="other"
makedepends="
	at-spi2-atk-dev
	atk-dev
	bubblewrap
	cairo-dev
	cmake
	gperf
	gst-plugins-base-dev
	gtk-doc
	harfbuzz-dev
	lcms2-dev
	libepoxy-dev
	libgcrypt-dev
	libseccomp-dev
	libsoup-dev
	libtasn1-dev
	libwpe-dev
	libwpebackend-fdo-dev
	libxkbcommon-dev
	libxslt-dev
	ninja
	openjpeg-dev
	perl
	ruby-dev
	ruby-json
	wayland-dev
	wayland-protocols
	woff2-dev
	xdg-dbus-proxy
	"
subpackages="$pkgname-dev $pkgname-doc"
source="https://wpewebkit.org/releases/wpewebkit-$pkgver.tar.xz
	patch-gettext.patch
	"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake -B build \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=None \
		-DPORT=WPE \
		-DENABLE_MINIBROWSER=On \
		-DENABLE_GTKDOC=On \
		-DUSE_SOUP2=On \
		-DUSE_SYSTEMD=Off \
		-GNinja \
		$CMAKE_CROSSOPTS .
	cmake --build build
}

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

sha512sums="
223d6ab767acf2f9f9a3225f04f51df1071851544168149ebe7bcaa0e49468dbe418a19158e5fc5dcdfb340541432bb90da6042ff8fd1fde91a81690cdfc60c3  wpewebkit-2.33.2.tar.xz
4316330f0c42fcfe800210bdbeabbb6bdcf532b71e2761550b8a753499d801fd0405cc961a516dfddfc28c3a6cf0c17b6db461ff51158238b8d874bf75b799f2  patch-gettext.patch
"