# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libwpe
pkgver=1.14.2
pkgrel=0
pkgdesc="General-purpose library specifically developed for the WPE-flavored port of WebKit"
url="https://wpewebkit.org/"
arch="all"
license="BSD-2-Clause"
makedepends="mesa-dev meson libxkbcommon-dev"
options="!check" # no tests
subpackages="$pkgname-dbg $pkgname-dev"
source="https://github.com/WebPlatformForEmbedded/libwpe/releases/download/$pkgver/libwpe-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Db_lto=true \
		. output
	meson compile -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
2c7b14190a55adcb9f45281715c5238e746ca85b8e50c655974b3a5e359472162bd87a5a40d13b73811e76d34d705614968bb6bdf8bf01c90504ce11e4b30e56  libwpe-1.14.2.tar.xz
"
