Subject: [PATCH v2] testing/waffle: new aport

From: Simon Zeni <[email-masked]>
Date: Fri, 24 Jan 2020 23:58:14 -0500

https://gitlab.freedesktop.org/mesa/waffle
A C library for selecting an OpenGL API and window system at runtime
---
 testing/waffle/APKBUILD | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 testing/waffle/APKBUILD

diff --git a/testing/waffle/APKBUILD b/testing/waffle/APKBUILD
new file mode 100644
index 0000000000..74c23598f6
--- /dev/null
+++ b/testing/waffle/APKBUILD
@@ -0,0 +1,30 @@
+# Contributor: Simon Zeni <[email-masked]>
+# Maintainer: Simon Zeni <[email-masked]>
+pkgname="waffle"
+pkgver="1.6.0"
+pkgrel=0
+pkgdesc="A C library for selecting an OpenGL API and window system at runtime"
+url="https://gitlab.freedesktop.org/mesa/waffle"
+arch="all"
+license="BSD-2-Clause"
+makedepends="eudev-dev mesa-dev mesa-gbm mesa-egl wayland-dev meson cmocka-dev"
+source="$pkgname-$pkgver.tar.gz::https://gitlab.freedesktop.org/mesa/$pkgname/-/archive/v$pkgver/$pkgname-v$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-v$pkgver"
+options="!check" # tests are platform dependant (x11/wayland)
+subpackages="$pkgname-doc"
+
+prepare() {
+	meson build \
+		--buildtype=release \
+		--prefix=/usr \
+		-Dbuild-examples=false
+}
+
+build() {
+	ninja -C build
+}
+
+package() {
+	DESTDIR="$pkgdir" ninja -C build install
+}
+sha512sums="c2e0fb1874061316ecbf44781d7f568c53ef5a6125d0b2f5e79668cbaa1bfe5706a163a3cf4eaf6f1666ad06be4f74e8e796bc7ce424eaad1b56ba08639306ee  waffle-1.6.0.tar.gz"
-- 
2.25.0