aboutsummaryrefslogblamecommitdiffstats
path: root/testing/wpewebkit/APKBUILD
blob: 15386eb785367ededce3400ca768af8fd7a61c71 (plain) (tree)
1
2
3
4
5
6
7
8






                                                    
                                                                     






























































                                                                                                                                                         
# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=wpewebkit
pkgver=2.33.2
pkgrel=0
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
"