aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2020-03-14 09:14:32 +0100
committerRasmus Thomsen <oss@cogitri.dev>2020-03-27 09:51:17 +0000
commit24e3e2cc8cf095d4aa11b206ae65b0561b25830e (patch)
tree14ff47bb2543f5db2ca9031177f74a6a568dc943
parentc9bb66f65ba423b31fe908f2af597aad7c4e2b3b (diff)
downloadaports-24e3e2cc8cf095d4aa11b206ae65b0561b25830e.tar.gz
aports-24e3e2cc8cf095d4aa11b206ae65b0561b25830e.tar.bz2
aports-24e3e2cc8cf095d4aa11b206ae65b0561b25830e.tar.xz
community/libwpe: new aport
https://wpewebkit.org/ General-purpose library specifically developed for the WPE-flavored port of WebKit Required for webkit2gtk
-rw-r--r--community/libwpe/APKBUILD34
1 files changed, 34 insertions, 0 deletions
diff --git a/community/libwpe/APKBUILD b/community/libwpe/APKBUILD
new file mode 100644
index 0000000000..99d6e18dc1
--- /dev/null
+++ b/community/libwpe/APKBUILD
@@ -0,0 +1,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"