#! /bin/bash set -e VERSION="3.14.24" source ./pika-build-config.sh echo "$PIKA_BUILD_ARCH" > pika-build-arch # Clone Upstream git clone --recurse-submodules https://github.com/Plagman/gamescope cp -rvf ./debian ./gamescope/ cd ./gamescope git reset --hard 7ae5e0d2a75de06e267c47ca3cd3cddedd1d7416 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 gamescope_"$VERSION" || echo "dh-make: Ignoring Last Error" dpkg-buildpackage --no-sign # Move the debs to output cd ../ mkdir -p ./output mv ./*.deb ./output/