2023-03-04 19:20:25 +01:00
|
|
|
#! /bin/bash
|
2024-07-30 19:49:10 +02:00
|
|
|
|
2023-03-04 19:28:20 +01:00
|
|
|
set -e
|
2023-06-16 20:24:23 +02:00
|
|
|
|
2024-07-30 19:49:10 +02:00
|
|
|
VERSION="30.2.1"
|
|
|
|
|
|
|
|
source ./pika-build-config.sh
|
|
|
|
|
|
|
|
echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
|
|
|
|
2023-03-04 18:33:16 +01:00
|
|
|
# Clone Upstream
|
2024-07-30 19:49:10 +02:00
|
|
|
git clone --recursive https://github.com/obsproject/obs-studio.git -b "$VERSION"
|
2023-04-28 20:14:47 +02:00
|
|
|
|
2023-04-28 19:26:48 +02:00
|
|
|
cp -rvf ./debian ./obs-studio/
|
2023-03-04 18:33:16 +01:00
|
|
|
cd ./obs-studio
|
2023-04-30 19:05:22 +02:00
|
|
|
|
|
|
|
wget https://cdn-fastly.obsproject.com/downloads/cef_binary_5060_linux64.tar.bz2
|
|
|
|
tar -xf ./cef_binary_5060_linux64.tar.bz2 -C ./
|
2023-09-29 17:50:05 +02:00
|
|
|
#git clone https://github.com/aja-video/ntv2.git
|
2023-04-28 19:16:31 +02:00
|
|
|
|
2023-04-28 22:11:16 +02:00
|
|
|
# remove -Werror flag to mitigate FTBFS with ffmpeg
|
2024-07-30 19:49:10 +02:00
|
|
|
#sed -i 's|-Werror-implicit-function-declaration||g' CMakeLists.txt
|
2023-04-28 21:41:22 +02:00
|
|
|
|
|
|
|
## remove Werror to fix compile error
|
2024-07-30 19:49:10 +02:00
|
|
|
#sed -i 's| -Werror||g' cmake/Modules/CompilerConfig.cmake
|
2023-04-28 21:54:33 +02:00
|
|
|
sed -i 's| -Wswitch||g' cmake/Modules/CompilerConfig.cmake
|
2023-04-28 21:41:22 +02:00
|
|
|
|
2023-10-26 23:10:16 +02:00
|
|
|
for i in ../patches/* ; do echo "Applying Patch: $i" && patch -Np1 -i $i || bash -c "echo "Applying Patch $i Failed!" && exit 2"; done
|
2023-03-04 18:33:16 +01:00
|
|
|
|
2024-07-30 19:49:10 +02:00
|
|
|
# Get build deps
|
|
|
|
apt-get build-dep ./ -y
|
2023-03-04 18:33:16 +01:00
|
|
|
|
2024-07-30 19:49:10 +02:00
|
|
|
# Build package
|
|
|
|
LOGNAME=root dh_make --createorig -y -l -p obs-studio_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
2023-04-30 19:05:22 +02:00
|
|
|
dpkg-buildpackage --no-sign
|
2023-04-28 19:16:31 +02:00
|
|
|
|
2023-03-04 18:33:16 +01:00
|
|
|
# Move the debs to output
|
2023-04-28 20:14:47 +02:00
|
|
|
cd ../
|
2023-04-30 19:05:22 +02:00
|
|
|
mkdir -p ./output
|
|
|
|
mv ./*.deb ./output/
|