aboutsummaryrefslogtreecommitdiffstats
path: root/community/libwpe/APKBUILD
blob: 99d6e18dc10a4a857ce2aa069e58da9d68aa25a2 (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
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=libwpe
pkgver=1.6.0
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="cmake mesa-dev libxkbcommon-dev"
options="!check" # no tests
subpackages="$pkgname-dev"
source="https://github.com/WebPlatformForEmbedded/libwpe/releases/download/$pkgver/libwpe-$pkgver.tar.xz"

build() {
	if [ "$CBUILD" != "$CHOST" ]; then
		CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux"
	fi
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_INSTALL_LIBDIR=lib \
		-DBUILD_SHARED_LIBS=True \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
		-DCMAKE_C_FLAGS="$CFLAGS" \
		$CMAKE_CROSSOPTS .
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="fb99cdbe0cf393d4f6b95dea180ee9eea1e8a9e6f8de5c02f856413c16f092842e5013a973ddd020878933d4f4a226e067218b575e5611b297470130ae58d4ba  libwpe-1.6.0.tar.xz"