2019-03-07 08:22:56 +01:00
|
|
|
# Description: Open Broadcaster Software Studio
|
|
|
|
# URL: https://obsproject.com/
|
|
|
|
# Maintainer: Danny Rawlins, crux at romster dot me
|
2020-03-18 13:21:20 +01:00
|
|
|
# Depends on: fdk-aac ffmpeg jansson libgmp mbedtls qt5 x264
|
|
|
|
# Optional: jack-audio-connection-kit ffnvcodec-headers vlc luajit speexdsp x265 pulseaudio libva
|
2019-03-07 08:22:56 +01:00
|
|
|
|
|
|
|
name=obs-studio
|
2020-05-24 04:27:40 +02:00
|
|
|
version=25.0.8
|
2019-03-07 08:22:56 +01:00
|
|
|
release=1
|
2019-04-14 10:28:29 +02:00
|
|
|
source=(https://github.com/obsproject/$name/archive/$version/$name-$version.tar.gz)
|
2019-03-07 08:22:56 +01:00
|
|
|
|
|
|
|
build() {
|
2020-03-18 13:21:20 +01:00
|
|
|
# cmake ..
|
|
|
|
# cmake -LA
|
|
|
|
|
2020-11-08 10:14:00 +01:00
|
|
|
cmake -S $name-$version -B build -G Ninja \
|
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
|
|
|
|
-D OBS_VERSION_OVERRIDE="$version" \
|
|
|
|
-D UNIX_STRUCTURE=ON \
|
|
|
|
-W no-dev
|
|
|
|
|
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2019-03-07 08:22:56 +01:00
|
|
|
|
2019-06-16 14:56:55 +02:00
|
|
|
chmod -R g-w $PKG
|
|
|
|
|
2020-03-18 13:21:20 +01:00
|
|
|
rm $PKG/usr/share/obs/obs-studio/authors/AUTHORS
|
2019-03-07 08:22:56 +01:00
|
|
|
|
|
|
|
find $PKG/usr/share/obs \
|
|
|
|
-iname '*ini' \
|
|
|
|
! -iname 'en-*.ini' \
|
|
|
|
! -iname 'locale.ini' \
|
|
|
|
-exec rm '{}' \+
|
|
|
|
}
|