Subject: [PATCH] testing/wlrobs: enable more arches, dmabuf

From: Drew DeVault <[email-masked]>
Date: Sat, 15 Jan 2022 10:22:13 +0000

dmabuf is now supported without an upstream obs patch, and my earlier
obs changes fix obs on all architectures.
---
 testing/wlrobs/APKBUILD | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/testing/wlrobs/APKBUILD b/testing/wlrobs/APKBUILD
index 40a7a031ae..3edd554cb4 100644
--- a/testing/wlrobs/APKBUILD
+++ b/testing/wlrobs/APKBUILD
@@ -1,12 +1,12 @@
 # Maintainer: Marian Buschsieweke <[email-masked]>
 pkgname=wlrobs
 pkgver=1.0
-pkgrel=0
+pkgrel=1
 pkgdesc="obs-studio plugin that allows you to screen capture on wlroots"
 url="https://hg.sr.ht/~scoopta/wlrobs"
-arch="x86 x86_64" # obs-stduio not provided on other platforms
+arch="all"
 license="GPL-3.0-only"
-makedepends="meson ninja obs-studio-dev wayland-dev"
+makedepends="meson ninja obs-studio-dev wayland-dev libdrm-dev mesa-dev"
 source="https://dev.alpinelinux.org/archive/wlrobs/wlrobs-$pkgver.tar.gz "
 builddir="$srcdir/$pkgname-v$pkgver"
 options="!check" # No tests provided
@@ -21,10 +21,8 @@ snapshot() {
 }
 
 build() {
-	# Disable dmabuf backend, this requires a patched version of obs-studio,
-	# which is not packaged
 	abuild-meson \
-		-Duse_dmabuf=false \
+		-Duse_dmabuf=true \
 		build
 	meson compile ${JOBS:+-j ${JOBS}} -C build
 }
-- 
2.34.1