2020-12-18 22:29:19 +00:00
|
|
|
# Maintainer: Knut Ahlers <knut at ahlers dot me>
|
|
|
|
# Contributor: Alice Gaudon <alice at gaudon dot pro>
|
2020-11-05 09:29:04 +00:00
|
|
|
# Contributor: Benjamin Klettbach <b dot klettbach at gmail dot com >
|
2016-03-07 14:50:41 +00:00
|
|
|
# Contributor: Jonathan Steel <jsteel at archlinux.org>
|
2015-07-09 10:04:10 +00:00
|
|
|
# Contributor: ArcticVanguard <LideEmily at gmail dot com>
|
|
|
|
# Contributor: ledti <antergist at gmail dot com>
|
2020-12-18 22:11:13 +00:00
|
|
|
|
2020-11-05 09:29:04 +00:00
|
|
|
pkgname=obs-studio-browser
|
2024-04-06 19:01:04 +00:00
|
|
|
pkgver=30.1.2
|
2024-06-29 19:51:04 +00:00
|
|
|
pkgrel=2
|
2020-11-05 09:29:04 +00:00
|
|
|
pkgdesc="Free and open source software for video recording and live streaming. Built with the browser plugin."
|
2016-03-07 14:50:41 +00:00
|
|
|
arch=("i686" "x86_64")
|
2019-08-13 17:58:28 +00:00
|
|
|
url="https://github.com/obsproject/obs-studio"
|
2016-03-07 14:50:41 +00:00
|
|
|
license=("GPL2")
|
2020-12-18 22:11:13 +00:00
|
|
|
depends=(
|
2022-09-10 13:31:17 +00:00
|
|
|
"curl"
|
|
|
|
"ffmpeg"
|
|
|
|
"gtk-update-icon-cache"
|
2023-11-15 11:05:41 +00:00
|
|
|
"jack"
|
2022-09-10 13:31:17 +00:00
|
|
|
"jansson"
|
2024-04-06 18:59:54 +00:00
|
|
|
"libdatachannel"
|
2023-05-07 13:46:17 +00:00
|
|
|
"libxcomposite"
|
2024-04-06 18:59:54 +00:00
|
|
|
"libxdamage"
|
2022-09-10 13:31:17 +00:00
|
|
|
"libxinerama"
|
|
|
|
"libxkbcommon-x11"
|
2022-09-12 14:29:28 +00:00
|
|
|
"mbedtls"
|
2022-09-10 13:31:17 +00:00
|
|
|
"pciutils"
|
|
|
|
"pipewire"
|
2023-11-15 11:05:41 +00:00
|
|
|
"qrcodegencpp-cmake"
|
2023-05-07 13:46:17 +00:00
|
|
|
"qt5-x11extras"
|
2023-11-15 11:05:41 +00:00
|
|
|
"qt6-svg"
|
2023-05-07 13:46:17 +00:00
|
|
|
"rnnoise"
|
2024-07-29 21:23:09 +00:00
|
|
|
"uthash"
|
2023-05-07 13:46:17 +00:00
|
|
|
"x264"
|
2020-12-18 22:11:13 +00:00
|
|
|
)
|
|
|
|
makedepends=(
|
2023-05-07 13:46:17 +00:00
|
|
|
"asio"
|
2022-09-10 13:31:17 +00:00
|
|
|
"cef-minimal-obs"
|
|
|
|
"cmake"
|
|
|
|
"git"
|
|
|
|
"libfdk-aac"
|
|
|
|
"libxcomposite"
|
|
|
|
"luajit"
|
2023-05-07 13:46:17 +00:00
|
|
|
"nlohmann-json"
|
2022-09-10 13:31:17 +00:00
|
|
|
"python"
|
2023-05-07 13:46:17 +00:00
|
|
|
"sndio"
|
2022-09-10 13:31:17 +00:00
|
|
|
"swig"
|
|
|
|
"vlc"
|
2023-05-07 13:46:17 +00:00
|
|
|
"websocketpp"
|
2020-12-18 22:11:13 +00:00
|
|
|
)
|
|
|
|
optdepends=(
|
2022-09-10 13:31:17 +00:00
|
|
|
"vlc: VLC Media Source"
|
|
|
|
"swig: Scripting"
|
|
|
|
"luajit: Lua scripting"
|
|
|
|
"python: Python scripting"
|
|
|
|
"v4l2loopback-dkms: Virtual camera output"
|
2020-12-18 22:11:13 +00:00
|
|
|
)
|
2018-01-12 17:48:52 +00:00
|
|
|
provides=("obs-studio=$pkgver")
|
2016-03-07 14:50:41 +00:00
|
|
|
conflicts=("obs-studio")
|
2020-12-18 22:11:13 +00:00
|
|
|
source=(
|
2022-09-10 13:31:17 +00:00
|
|
|
"$pkgname::git+https://github.com/obsproject/obs-studio.git#tag=$pkgver"
|
2024-07-29 21:23:09 +00:00
|
|
|
"nv-codec-headers.tar.gz::https://github.com/FFmpeg/nv-codec-headers/releases/download/n12.1.14.0/nv-codec-headers-12.1.14.0.tar.gz"
|
2020-12-18 22:11:13 +00:00
|
|
|
)
|
2024-07-29 21:23:09 +00:00
|
|
|
# XXX nv-codec-headers are kept back at version n12.1.14.0 due to OBS not supporting any newer version
|
2024-06-29 19:51:04 +00:00
|
|
|
sha256sums=('0390743a85c3294abdb73ddf7d5d60354b5283f77cc9680026b2641600ae5384'
|
2024-07-29 21:23:09 +00:00
|
|
|
'62b30ab37e4e9be0d0c5b37b8fee4b094e38e570984d56e1135a6b6c2c164c9f')
|
2015-07-09 10:04:10 +00:00
|
|
|
|
2017-08-30 17:49:33 +00:00
|
|
|
prepare() {
|
2022-09-10 13:31:17 +00:00
|
|
|
cd $pkgname
|
|
|
|
git submodule update --init --recursive
|
2017-08-30 17:49:33 +00:00
|
|
|
}
|
|
|
|
|
2015-07-09 10:04:10 +00:00
|
|
|
build() {
|
2023-11-15 11:05:41 +00:00
|
|
|
cmake -B build -S $pkgname \
|
2024-07-29 21:23:09 +00:00
|
|
|
-DFFnvcodec_INCLUDE_DIR="nv-codec-headers-12.1.14.0/include/" \
|
2023-11-15 11:05:41 +00:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2024-07-29 21:23:09 +00:00
|
|
|
-DBUILD_BROWSER=ON \
|
|
|
|
-DENABLE_VST=ON \
|
|
|
|
-DENABLE_VLC=OFF \
|
|
|
|
-DENABLE_NEW_MPEGTS_OUTPUT=OFF \
|
2023-11-15 11:05:41 +00:00
|
|
|
-DENABLE_AJA=OFF \
|
|
|
|
-DENABLE_JACK=ON \
|
|
|
|
-DENABLE_LIBFDK=ON \
|
2024-04-06 18:59:54 +00:00
|
|
|
-DENABLE_WEBRTC=ON \
|
2023-11-15 11:05:41 +00:00
|
|
|
-DOBS_VERSION_OVERRIDE="$pkgver-$pkgrel" \
|
2024-07-29 21:23:09 +00:00
|
|
|
-DCALM_DEPRECATION=ON \
|
|
|
|
-DCEF_ROOT_DIR="/opt/cef" \
|
2023-11-15 11:05:41 +00:00
|
|
|
-Wno-dev
|
2016-03-07 14:50:41 +00:00
|
|
|
|
2023-11-15 11:05:41 +00:00
|
|
|
cmake --build build
|
2015-07-09 10:04:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2023-11-15 11:05:41 +00:00
|
|
|
DESTDIR="$pkgdir" cmake --install build
|
2015-07-09 10:04:10 +00:00
|
|
|
}
|
2016-08-30 19:29:09 +00:00
|
|
|
|
2018-01-25 19:13:49 +00:00
|
|
|
# vim: ts=2:sw=2:expandtab
|