aboutsummaryrefslogtreecommitdiffstats
path: root/community/libwpebackend-fdo/APKBUILD
blob: e08174f5bfdbc65f76d3ec294cf18e7011fee8be (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libwpebackend-fdo
pkgver=1.14.2
pkgrel=1
pkgdesc="freedesktop.org backend for WPE WebKit"
url="https://wpewebkit.org/"
arch="all"
license="BSD-2-Clause"
depends_dev="$pkgname"
makedepends="mesa-dev meson glib-dev wayland-dev libwpe-dev libepoxy-dev"
options="!check" # no tests
subpackages="$pkgname-dbg $pkgname-dev"
source="https://github.com/Igalia/WPEBackend-fdo/releases/download/$pkgver/wpebackend-fdo-$pkgver.tar.xz"
builddir="$srcdir/wpebackend-fdo-$pkgver"

build() {
	CFLAGS="${CFLAGS/-g/-g1}" \
	CXXFLAGS="${CXXFLAGS/-g/-g1}" \
	abuild-meson \
		-Db_lto=true \
		. output
	meson compile -C output
}

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

dev() {
	default_dev

	# this .so symlink needs to be in the main package
	mv "$subpkgdir"/usr/lib/libWPEBackend-fdo-1.0.so "$pkgdir"/usr/lib
}

sha512sums="
4edc28221795b325977f9a5a79b7656b4f100129a6d1c15142180bab94cce1a8b06b42a71fbe985ddc1e02772f1cc03a92f73d2176edd16e791db799b831740c  wpebackend-fdo-1.14.2.tar.xz
"