85 lines
3.1 KiB
Bash
85 lines
3.1 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=30.1.0
|
|
pkgrel=01
|
|
pkgdesc="Free and open source software for video recording and live streaming Includes new AMF encoding patch w/o systemd pipewire pulseaudio"
|
|
depends=('ffmpeg' 'jansson' 'libxinerama'
|
|
'libxkbcommon-x11' 'mbedtls' 'rnnoise' 'pciutils'
|
|
'qt6-svg' 'curl' 'jack2'
|
|
'gtk-update-icon-cache' 'libxcomposite' 'amf-headers' 'vulkan-headers'
|
|
'libdatachannel')
|
|
makedepends=('git' 'cmake' 'libfdk-aac' 'x264' 'swig' 'python' 'luajit' 'sndio' 'amf-headers' 'vulkan-headers')
|
|
url="https://obsproject.com"
|
|
provides=("obs-studio=$pkgver")
|
|
conflicts=("obs-studio-git" "obs-studio-rc" 'obs-studio-amf')
|
|
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')
|
|
_commit=17484b914851f8dab6dae235ef2357db37936cc9 # tags/29.1.3
|
|
#source=(obs-studio::git+https://github.com/obsproject/obs-studio.git#tag=$pkgver
|
|
source=($pkgname-$pkgver.tar.gz::https://github.com/obsproject/obs-studio/archive/$pkgver.tar.gz
|
|
fix_python_binary_loading.patch
|
|
ignore_unused_submodules.patch
|
|
com.obsproject.Studio.desktop)
|
|
|
|
prepare() {
|
|
cd $pkgname-$pkgver
|
|
patch -Np1 < "$srcdir"/fix_python_binary_loading.patch
|
|
patch -Np1 < "$srcdir"/ignore_unused_submodules.patch
|
|
## new AMF encoding 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_NEW_MPEGTS_OUTPUT=OFF \
|
|
-DENABLE_LIBFDK=ON \
|
|
-DENABLE_PIPEWIRE=FALSE \
|
|
-DENABLE_PULSEAUDIO=FALSE \
|
|
-DENABLE_WEBRTC=ON \
|
|
-DOBS_VERSION_OVERRIDE="$pkgver" \
|
|
-DCALM_DEPRECATION=ON \
|
|
-Wno-dev
|
|
cmake --build build
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" cmake --install build
|
|
install -Dm0644 -t "$pkgdir/usr/share/applications/" "com.obsproject.Studio.desktop"
|
|
}
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(GPL2)
|
|
|
|
sha256sums=(ec5c1932954fdfb5c5166ebd5f10f791c0557b0e241ece7443a24e8fce88bd56 # obs-studio-30.1.0.tar.gz
|
|
bdfbd062f080bc925588aec1989bb1df34bf779cc2fc08ac27236679cf612abd # fix_python_binary_loading.patch
|
|
60b0ee1f78df632e1a8c13cb0a7a5772b2a4b092c4a2a78f23464a7d239557c3 # ignore_unused_submodules.patch
|
|
155c6342fc95617f6add6240f06541b6725cbed3f0baa1b77ae6d85832f77f30) # com.obsproject.Studio.desktop
|
|
|
|
## 3a42ef8e3093e960cebd24e830a59479bccb594ab07c2eebbf2843f86945a879 obs-studio-30.1.0-01-x86_64.pkg.tar.lz
|
|
|