summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e7714b9c6e9d466363333337b056539a96c79dc6 (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
# Maintainer: José Miguel Sarasola <jmsaraur@gmail.com>
# Contributor: Jonathan Steel <jsteel at archlinux.org>
# Contributor: Benjamin Klettbach <b.klettbach@gmail.com>

pkgname=obs-studio-amf
pkgver=28.0.1
pkgrel=3
pkgdesc="Free, open source software for live streaming and recording. Includes new AMF encoding patch & browser plugin"
arch=('x86_64')
url="https://obsproject.com"
license=('GPL2')
depends=('ffmpeg' 'jansson' 'libxinerama' 'libxkbcommon-x11' 'mbedtls' 'rnnoise' 'pciutils' 'nss'
		'qt6-svg' 'qt6-wayland' 'xdg-desktop-portal' 'curl' 'jack' 'gtk-update-icon-cache' 'pipewire' 'libxcomposite' 'amf-amdgpu-pro')
makedepends=('cmake' 'libfdk-aac' 'x264' 'swig' 'python' 'luajit' 'sndio' 'git')
provides=("obs-studio=$pkgver" "obs-websocket")
conflicts=("obs-studio" "obs-studio-tytan652" "obs-websocket")
optdepends=('libfdk-aac: FDK AAC codec support'
		'libva-intel-driver: hardware encoding'
		'libva-mesa-driver: hardware encoding'
		'luajit: scripting support'
		'python: scripting support'
		'sndio: Sndio input client'
		'v4l2loopback-dkms: virtual camera support')
source=(obs-studio::git+https://github.com/obsproject/obs-studio.git#tag=$pkgver
	cef_binary_4638_linux64.tar.bz2::https://cdn-fastly.obsproject.com/downloads/cef_binary_4638_linux64.tar.bz2
	7206.patch::https://patch-diff.githubusercontent.com/raw/obsproject/obs-studio/pull/7206.patch
	com.obsproject.Studio.desktop)
md5sums=('SKIP'
	 '34fb1c611b3e278ca4d0d1d50e7bfb9b'
	 'SKIP'
	 '2f0f4b1f1814716d345a8f028b987361')

prepare() {
	tar -xjf ./cef_binary_4638_linux64.tar.bz2
	cd obs-studio
	git submodule update --init --recursive
	patch -Np1 < "$srcdir"/7206.patch
}

build() {
	cd obs-studio
	mkdir -p build; cd build

	cmake -DCMAKE_INSTALL_PREFIX="/usr" \
	-DBUILD_VST=OFF \
	-DENABLE_VLC=OFF \
	-DENABLE_BROWSER=ON \
	-DCEF_ROOT_DIR="../../cef_binary_4638_linux64" \
	-DENABLE_AJA=OFF \
	-DENABLE_NEW_MPEGTS_OUTPUT=OFF \
	-DOBS_VERSION_OVERRIDE="$pkgver-$pkgrel" ..

	make
}

package() {
	cd obs-studio/build
	make install DESTDIR="$pkgdir"

	cd ../..
	install -Dm0644 -t "$pkgdir/usr/share/applications/" "com.obsproject.Studio.desktop"
}