gamescope/main.sh

29 lines
704 B
Bash
Raw Normal View History

2024-07-28 19:28:08 +02:00
#! /bin/bash
set -e
VERSION="3.14.24"
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-07-28 19:28:08 +02:00
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
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/