77 lines
2.6 KiB
Bash
77 lines
2.6 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=obs-studio
|
|
pkgver=29.1.1
|
|
pkgrel=02
|
|
pkgdesc="Free and open source software for video recording and live streaming. w/o systemd pipewire pulseaudio"
|
|
depends=('ffmpeg' 'jansson' 'libxinerama' 'libxkbcommon-x11' 'mbedtls' 'rnnoise' 'pciutils'
|
|
'qt5-svg' 'curl' 'jack2' 'gtk-update-icon-cache' 'libxcomposite')
|
|
makedepends=('cmake' 'libfdk-aac' 'x264' 'swig' 'python' 'luajit' 'sndio')
|
|
url="https://obsproject.com"
|
|
url2="https://github.com/obsproject/obs-studio"
|
|
optdepends=('libfdk-aac: FDK AAC codec support'
|
|
'libva-intel-driver: hardware encoding'
|
|
'libva-mesa-driver: hardware encoding'
|
|
"vlc: VLC Media Source"
|
|
'luajit: scripting support'
|
|
'python: scripting support'
|
|
'sndio: Sndio input client'
|
|
'v4l2loopback-dkms: virtual camera support')
|
|
provides=("obs-studio=$pkgver")
|
|
conflicts=("obs-studio-git" "obs-studio-rc")
|
|
|
|
source=($pkgname-$pkgver.tar.gz::https://github.com/jp9000/obs-studio/archive/$pkgver.tar.gz
|
|
fix_python_binary_loading.patch
|
|
ignore_unused_submodules.patch)
|
|
|
|
prepare() {
|
|
cd $pkgname-$pkgver
|
|
patch -Np1 < "$srcdir"/fix_python_binary_loading.patch
|
|
patch -Np1 < "$srcdir"/ignore_unused_submodules.patch
|
|
}
|
|
|
|
build() {
|
|
cmake -B build -S $pkgname-$pkgver \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DENABLE_BROWSER=OFF \
|
|
-DCEF_ROOT_DIR="/opt/cef-obs" \
|
|
-DENABLE_VST=ON \
|
|
-DENABLE_VLC=OFF \
|
|
-DENABLE_NEW_MPEGTS_OUTPUT=OFF \
|
|
-DENABLE_AJA=OFF \
|
|
-DENABLE_JACK=ON \
|
|
-DENABLE_ALSA=ON \
|
|
-DENABLE_LIBFDK=ON \
|
|
-DOBS_VERSION_OVERRIDE="$pkgver" \
|
|
-DENABLE_PIPEWIRE=FALSE \
|
|
-DENABLE_PULSEAUDIO=FALSE \
|
|
-Wno-dev
|
|
cmake --build build
|
|
}
|
|
|
|
package() {
|
|
# cd $pkgname/build
|
|
#
|
|
# make install DESTDIR="$pkgdir"
|
|
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(GPL2)
|
|
|
|
sha256sums=(9a37148449d715b3c7cc3e622c291aba9fa45bd354a39453b3e922eb558cf21e # obs-studio-29.1.1.tar.gz
|
|
bdfbd062f080bc925588aec1989bb1df34bf779cc2fc08ac27236679cf612abd # fix_python_binary_loading.patch
|
|
60b0ee1f78df632e1a8c13cb0a7a5772b2a4b092c4a2a78f23464a7d239557c3) # ignore_unused_submodules.patch
|
|
|
|
## 28efae5f088a180e49f9923315c2657489021c853f616eecef22bc2062cea039 obs-studio-29.1.1-02-x86_64.pkg.tar.lz
|