blob: 9c03c73e4732c6f05e4a43e4d15bdce308351899 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# Maintainer: tytan652 <tytan652 at tytanium dot xyz>
pkgname=obs-studio-tytan652
pkgver=26.1.2
pkgrel=2
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 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
|