2024-07-28 19:28:08 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2024-11-19 21:00:47 +01:00
|
|
|
VERSION="3.15.14"
|
2024-07-28 19:28:08 +02:00
|
|
|
|
|
|
|
source ./pika-build-config.sh
|
|
|
|
|
|
|
|
echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
|
|
|
|
2023-02-25 14:08:00 +01:00
|
|
|
# Clone Upstream
|
2024-07-28 19:28:08 +02:00
|
|
|
git clone --recurse-submodules https://github.com/Plagman/gamescope
|
|
|
|
cp -rvf ./debian ./gamescope/
|
2023-02-25 14:08:00 +01:00
|
|
|
cd ./gamescope
|
2024-11-19 21:00:47 +01:00
|
|
|
git reset --hard b2505fe4dac917aadd1ab05473d863830a7b5859
|
2024-07-28 19:28:08 +02:00
|
|
|
for i in $(cat ../patches/series) ; do echo "Applying Patch: $i" && patch -Np1 -i ../patches/$i || echo "Applying Patch $i Failed!"; done
|
|
|
|
|
2023-02-25 14:08:00 +01:00
|
|
|
# Get build deps
|
|
|
|
apt-get build-dep ./ -y
|
|
|
|
|
|
|
|
# Build package
|
2024-07-28 19:28:08 +02:00
|
|
|
LOGNAME=root dh_make --createorig -y -l -p gamescope_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
2023-07-15 15:30:49 +02:00
|
|
|
dpkg-buildpackage --no-sign
|
2023-02-25 14:08:00 +01:00
|
|
|
|
|
|
|
# Move the debs to output
|
|
|
|
cd ../
|
|
|
|
mkdir -p ./output
|
|
|
|
mv ./*.deb ./output/
|