42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
# Description: Open Broadcaster Software Studio
|
|
# URL: https://obsproject.com/
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
|
# Depends on: fdk-aac ffmpeg jansson libgmp mbedtls pulseaudio qt5 x264
|
|
# Optional: ffnvcodec-headers jack-audio-connection-kit libva luajit pipewire pulseaudio speexdsp vlc wayland-protocols x265
|
|
|
|
name=obs-studio
|
|
version=27.2.4
|
|
release=1
|
|
source=(https://github.com/obsproject/$name/archive/$version/$name-$version.tar.gz)
|
|
|
|
build() {
|
|
prt-get isinst wayland-protocols && PKGMK_OBS+=' -D ENABLE_WAYLAND=ON' || PKGMK_OBS+=' -D ENABLE_WAYLAND=OFF'
|
|
prt-get isinst pipewire || PKGMK_OBS+=' -D ENABLE_PIPEWIRE=OFF'
|
|
|
|
export QT_QPA_PLATFORMTHEME="qt5ct"
|
|
cmake -S $name-$version -B build -G Ninja $PKGMK_OBS \
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
-D OBS_VERSION_OVERRIDE="$version" \
|
|
-D UNIX_STRUCTURE=ON \
|
|
-D BUILD_VST=OFF \
|
|
-D BUILD_BROWSER=OFF \
|
|
-Wno-dev
|
|
|
|
cmake --build build
|
|
DESTDIR=$PKG cmake --install build
|
|
|
|
find $PKG -type d -exec chmod g-w '{}' \;
|
|
|
|
rm $PKG/usr/share/obs/obs-studio/authors/AUTHORS
|
|
|
|
find $PKG/usr/share/obs \
|
|
-iname '*ini' \
|
|
! -iname 'en-*.ini' \
|
|
! -iname 'locale.ini' \
|
|
-exec rm '{}' \+
|
|
}
|