pkgname=obs-studio pkgver=22.0.2 pkgrel=1 pkgdesc="Free, open source software for live streaming and recording" arch=('x86_64') url="https://obsproject.com" license=('GPL2') depends=('ffmpeg' 'jansson' 'libxinerama' 'libxkbcommon-x11' 'qt5-x11extras' 'curl' 'jack' 'gtk-update-icon-cache') makedepends=('cmake' 'libfdk-aac' 'libxcomposite' 'x264' 'vlc' 'swig' 'python3' 'luajit') optdepends=('libfdk-aac: FDK AAC codec support' 'libxcomposite: XComposite capture support' 'luajit: scripting support' 'python: scripting support' 'vlc: VLC Media Source support') source=($pkgname-$pkgver.tar.gz::https://github.com/jp9000/obs-studio/archive/$pkgver.tar.gz) # 'qt-5.11.patch::https://github.com/obsproject/obs-studio/commit/4fd06b9825465ae5eb2a9b862cdb89098f655f14.patch') md5sums=('8c63cdc08a4510f288d174c65b252544') prepare() { cd $pkgname-$pkgver # patch -Np1 -i ../qt-5.11.patch } build() { cd $pkgname-$pkgver mkdir -p build; cd build cmake -DCMAKE_INSTALL_PREFIX="/usr" \ -DOBS_VERSION_OVERRIDE="$pkgver-$pkgrel" .. make } package() { cd $pkgname-$pkgver/build make install DESTDIR="$pkgdir" }