obs-gamecapture-plugin/main.sh

27 lines
567 B
Bash
Raw Normal View History

2023-04-30 19:37:23 +02:00
#! /bin/bash
2024-07-30 21:23:03 +02:00
2023-04-30 19:37:23 +02:00
set -e
2023-06-16 20:22:42 +02:00
2024-07-30 21:23:03 +02:00
VERSION="1.5.1"
source ./pika-build-config.sh
echo "$PIKA_BUILD_ARCH" > pika-build-arch
2023-04-30 19:37:23 +02:00
# Clone Upstream
2024-07-30 21:23:03 +02:00
git clone https://github.com/nowrep/obs-vkcapture ./obs-gamecapture-plugin -b v"$VERSION"
cp -rvf ./debian ./obs-gamecapture-plugin/
cd ./obs-gamecapture-plugin
2023-04-30 19:37:23 +02:00
# Get build deps
apt-get build-dep ./ -y
# Build package
2024-07-30 21:23:03 +02:00
LOGNAME=root dh_make --createorig -y -l -p obs-gamecapture-plugin_"$VERSION" || echo "dh-make: Ignoring Last Error"
2023-04-30 19:37:23 +02:00
dpkg-buildpackage --no-sign
# Move the debs to output
cd ../
mkdir -p ./output
mv ./*.deb ./output/