aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Demelier <markand@malikania.fr>2021-09-20 15:55:38 +0200
committerLeo <thinkabit.ukim@gmail.com>2021-09-21 21:42:28 +0000
commit29d829ea0be60fced98544f2043911b28206afbe (patch)
tree3976755bdb420ea501727f016649a4aef8a8c388
parentfbe4144883fc347e695f2eedb338ea07fe5439bc (diff)
downloadaports-29d829ea0be60fced98544f2043911b28206afbe.tar.gz
aports-29d829ea0be60fced98544f2043911b28206afbe.tar.bz2
aports-29d829ea0be60fced98544f2043911b28206afbe.tar.xz
testing/cog: new aport
https://github.com/Igalia/cog simple browser for WebKit WPE
-rw-r--r--testing/cog/APKBUILD48
1 files changed, 48 insertions, 0 deletions
diff --git a/testing/cog/APKBUILD b/testing/cog/APKBUILD
new file mode 100644
index 0000000000..6642adc822
--- /dev/null
+++ b/testing/cog/APKBUILD
@@ -0,0 +1,48 @@
+# Contributor: David Demelier <markand@malikania.fr>
+# Maintainer: David Demelier <markand@malikania.fr>
+pkgname=cog
+pkgver=0.10.1
+pkgrel=0
+pkgdesc="simple browser for WebKit WPE"
+url="https://github.com/Igalia/cog"
+arch="all !x86" # x86: wpewebkit not available.
+license="MIT"
+makedepends="cairo-dev
+ cmake
+ eudev-dev
+ libinput-dev
+ libsoup-dev
+ libwpebackend-fdo-dev
+ mesa-dev
+ wayland-dev
+ wayland-protocols
+ wpewebkit-dev
+ "
+source="https://github.com/Igalia/cog/releases/download/v0.10.1/cog-$pkgver.tar.xz"
+subpackages="$pkgname-dev $pkgname-doc"
+
+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 \
+ $CMAKE_CROSSOPTS .
+ cmake --build build
+}
+
+check() {
+ cd build
+ CTEST_OUTPUT_ON_FAILURE=TRUE ctest
+}
+
+package() {
+ DESTDIR="$pkgdir" cmake --install build
+}
+
+sha512sums="
+3303da1f5f1ff04f6b4b0bd26d7085b58c90066d6db40be3e8c0c7158e56f7c40f2f606e7a4f6f60aa0d04345084f8e93eb16d62b11ed0248e21c2af92db0a22 cog-0.10.1.tar.xz
+"