blob: c3075a26c0fda3fafec123715d8f5033df6c54eb (
plain)
1 # Description: Open Broadcaster Software Studio
2 # URL: https://obsproject.com/
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Depends on: fdk-aac ffmpeg jansson libgmp mbedtls qt5 x264
5 # Optional: jack-audio-connection-kit ffnvcodec-headers vlc luajit speexdsp x265 pulseaudio libva
6
7 name=obs-studio
8 version=25.0.8
9 release=1
10 source=(https://github.com/obsproject/$name/archive/$version/$name-$version.tar.gz)
11
12 build() {
13 # cmake ..
14 # cmake -LA
15
16 cmake -S $name-$version -B build -G Ninja \
17 -D CMAKE_INSTALL_PREFIX=/usr \
18 -D CMAKE_INSTALL_LIBDIR=lib \
19 -D CMAKE_BUILD_TYPE=Release \
20 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
21 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
22 -D OBS_VERSION_OVERRIDE="$version" \
23 -D UNIX_STRUCTURE=ON \
24 -Wno-dev
25
26 cmake --build build
27 DESTDIR=$PKG cmake --install build
28
29 chmod -R g-w $PKG
30
31 rm $PKG/usr/share/obs/obs-studio/authors/AUTHORS
32
33 find $PKG/usr/share/obs \
34 -iname '*ini' \
35 ! -iname 'en-*.ini' \
36 ! -iname 'locale.ini' \
37 -exec rm '{}' \+
38 }
|