ba66e42369
Some checks failed
PikaOS Package Build & Release (Canary) (amd64-v3) / build (push) Failing after 3m20s
41 lines
1.1 KiB
Bash
Executable File
41 lines
1.1 KiB
Bash
Executable File
#! /bin/bash
|
|
|
|
set -e
|
|
|
|
VERSION="30.2.1"
|
|
|
|
source ./pika-build-config.sh
|
|
|
|
echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
|
|
|
# Clone Upstream
|
|
git clone --recursive https://github.com/obsproject/obs-studio.git -b "$VERSION"
|
|
|
|
cp -rvf ./debian ./obs-studio/
|
|
cd ./obs-studio
|
|
|
|
wget https://cdn-fastly.obsproject.com/downloads/cef_binary_5060_linux64.tar.bz2
|
|
tar -xf ./cef_binary_5060_linux64.tar.bz2 -C ./
|
|
#git clone https://github.com/aja-video/ntv2.git
|
|
|
|
# remove -Werror flag to mitigate FTBFS with ffmpeg
|
|
#sed -i 's|-Werror-implicit-function-declaration||g' CMakeLists.txt
|
|
|
|
## remove Werror to fix compile error
|
|
#sed -i 's| -Werror||g' cmake/Modules/CompilerConfig.cmake
|
|
sed -i 's| -Wswitch||g' cmake/Modules/CompilerConfig.cmake
|
|
|
|
for i in $(cat ../patches/series) ; do echo "Applying Patch: $i" && patch -Np1 -i ../patches/$i || echo "Applying Patch $i Failed!"; done
|
|
|
|
# Get build deps
|
|
apt-get build-dep ./ -y
|
|
|
|
# Build package
|
|
LOGNAME=root dh_make --createorig -y -l -p obs-studio_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
|
dpkg-buildpackage --no-sign
|
|
|
|
# Move the debs to output
|
|
cd ../
|
|
mkdir -p ./output
|
|
mv ./*.deb ./output/
|