Subject: [PATCH] community/obs-studio: re-enable riscv64 et al

From: Drew DeVault <[email-masked]>
Date: Fri, 14 Jan 2022 23:04:40 +0000

By disabling VLC
---
 community/obs-studio/APKBUILD | 16 ++++++++++++----
 1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/community/obs-studio/APKBUILD b/community/obs-studio/APKBUILD
index 13691ae438..fce9a3ca93 100644
--- a/community/obs-studio/APKBUILD
+++ b/community/obs-studio/APKBUILD
@@ -2,22 +2,30 @@
 # Maintainer: Francesco Colista <[email-masked]>
 pkgname=obs-studio
 pkgver=27.1.3
-pkgrel=2
+pkgrel=3
 pkgdesc="Free and open source software for live streaming and screen recording"
 url="https://obsproject.com/"
-# mips64, armhf, s390x and riscv64 blocked by librsvg -> vlc
-arch="all !armhf !s390x !mips !mips64 !riscv64"
+arch="all"
 license="GPL-2.0-or-later"
 options="!check"
 makedepends="cmake ffmpeg-dev libxinerama-dev
 	qt5-qtbase-dev qt5-qtx11extras-dev qt5-qtsvg-dev x264-dev fontconfig-dev
 	libxcomposite-dev freetype-dev libx11-dev mesa-dev curl-dev
-	pulseaudio-dev jack-dev vlc-dev alsa-lib-dev fdk-aac-dev speexdsp-dev
+	pulseaudio-dev jack-dev alsa-lib-dev fdk-aac-dev speexdsp-dev
 	v4l-utils-dev jansson-dev eudev-dev swig mbedtls-dev python3-dev
 	wayland-dev pipewire-dev sndio-dev"
 subpackages="$pkgname-dev"
 source="https://github.com/obsproject/obs-studio/archive/$pkgver/obs-studio-$pkgver.tar.gz"
 
+# mips64, armhf, s390x and riscv64 blocked by librsvg -> vlc
+case $CARCH in
+	mips64|armhf|s390x|riscv64)
+		;;
+	*)
+		makedepends="$makedepends vlc-dev"
+		;;
+esac
+
 build() {
 	cmake -B build \
 		-DCMAKE_BUILD_TYPE=None \
-- 
2.34.1