obs-studio/main.sh

29 lines
817 B
Bash
Raw Normal View History

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
2023-03-08 15:36:14 +01:00
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
2023-03-04 18:33:16 +01:00
# Clone Upstream
2023-03-08 15:56:39 +01:00
git clone --recursive https://github.com/obsproject/obs-studio.git
2023-03-08 16:22:28 +01:00
#wget https://cdn-fastly.obsproject.com/downloads/cef_binary_5060_linux64.tar.bz2
#mkdir -p ./build_dependencies/
#tar -xf ./cef_binary_5060_linux64.tar.bz2 -C ./build_dependencies/
#cp -rvf ./debian ./obs-studio/
#cp -rvf ./build_dependencies ./obs-studio/
2023-03-04 18:33:16 +01:00
cd ./obs-studio
2023-03-08 16:22:28 +01:00
./CI/build-linux.sh
2023-03-08 16:15:55 +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/