2023-03-04 19:20:25 +01:00
|
|
|
#! /bin/bash
|
2023-03-04 19:28:20 +01:00
|
|
|
set -e
|
2023-03-04 18:33:16 +01:00
|
|
|
# Add dependent repositories
|
|
|
|
wget -q -O - https://ppa.pika-os.com/key.gpg | sudo apt-key add -
|
|
|
|
add-apt-repository https://ppa.pika-os.com
|
|
|
|
add-apt-repository ppa:pikaos/pika
|
|
|
|
add-apt-repository ppa:kubuntu-ppa/backports
|
|
|
|
# Clone Upstream
|
2023-03-04 19:20:25 +01:00
|
|
|
tar -xf ./obs-studio_29.0.2.tar.gz -C ./
|
2023-03-04 18:33:16 +01:00
|
|
|
tar -xf ./cef_binary_5060_linux64.tar.xz -C ./build_dependencies/
|
|
|
|
mv ./obs-studio-0fb8bb4b1e18ee1c870c48d35ab5b598af3b59e9 ./obs-studio
|
|
|
|
cp -rvf ./debian ./obs-studio/
|
|
|
|
cp -rvf ./build_dependencies ./obs-studio/
|
|
|
|
cd ./obs-studio
|
2023-03-04 19:20:25 +01:00
|
|
|
for i in ../patches/*; do patch -Np1 -i $i ;done
|
2023-03-04 18:33:16 +01:00
|
|
|
|
|
|
|
# Get build deps
|
|
|
|
apt-get build-dep ./ -y
|
|
|
|
|
|
|
|
# Build package
|
|
|
|
dpkg-buildpackage
|
|
|
|
|
|
|
|
# Move the debs to output
|
|
|
|
cd ../
|
|
|
|
mkdir -p ./output
|
|
|
|
mv ./*.deb ./output/
|