# Maintainer: tytan652 pkgname=obs-studio-tytan652 pkgver=26.1.2 pkgrel=3 pkgdesc="Free and open source software for video recording and live streaming. Built with Browser and VST plugins and some patches but without FTL and Python." # Why no FTL ? Because Mixer is dead # Why no Python ? Because it doesn't work out of the box with Python 3.9 arch=("i686" "x86_64") url="https://github.com/obsproject/obs-studio" license=("GPL2") depends=("ffmpeg" "jansson" "libxinerama" "libxkbcommon-x11" "qt5-x11extras" "curl" "gtk-update-icon-cache") makedepends=("cmake" "git" "libfdk-aac" "libxcomposite" "x264" "jack" "vlc" "swig" "luajit" "cef-minimal-3770") optdepends=( "libfdk-aac: FDK AAC codec support" "libxcomposite: XComposite capture support" "jack: JACK Support" "vlc: VLC Media Source" "swig: Scripting" "luajit: Lua scripting" "v4l2loopback-dkms: Virtual camera output" ) provides=("obs-studio=$pkgver") conflicts=("obs-studio" "obs-linuxbrowser") source=( "$pkgname::git+https://github.com/obsproject/obs-studio.git#tag=$pkgver" "bind_iface.patch::https://patch-diff.githubusercontent.com/raw/obsproject/obs-studio/pull/4219.patch" "git+https://github.com/obsproject/obs-browser.git" "git+https://github.com/obsproject/obs-vst.git#commit=cca219fa3613dbc65de676ab7ba29e76865fa6f8" "VST_PATH_fix.patch::https://patch-diff.githubusercontent.com/raw/obsproject/obs-vst/pull/82.patch" ) sha256sums=( "SKIP" "4ee347b12a9cc93bad2357a2ba29341a846da7e0ff80a3bf3e88c3b661643595" "SKIP" "SKIP" "169af464164ef05384586f31fbde3d509159976e0afb914907fb3cf395adaf6e" ) prepare() { cd $pkgname git config submodule.plugins/obs-browser.url $srcdir/obs-browser git submodule update # Add network interface binding for RTMP on Linux (https://github.com/obsproject/obs-studio/pull/4219) patch -Np1 < "$srcdir/bind_iface.patch" cd plugins # Replace obs-vst submodule by the repo with same last commit rm -rf obs-vst cp -r $srcdir/obs-vst obs-vst cd obs-vst # obs-vst: fix memory leak git cherry-pick -n 944c1c962748ee48ab0eca24bacc5354c169eb60 # Fix VST_PATH use under Linux (https://github.com/obsproject/obs-vst/pull/82) patch -Np1 < "$srcdir/VST_PATH_fix.patch" } build() { cd $pkgname mkdir -p build; cd build cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DDISABLE_PYTHON=ON \ -DBUILD_BROWSER=ON \ -DCEF_ROOT_DIR="/opt/cef" \ -DOBS_VERSION_OVERRIDE=$pkgver .. make } package() { cd $pkgname/build make install DESTDIR="$pkgdir" } # vim: ts=2:sw=2:expandtab