gamescope/main.sh

29 lines
745 B
Bash
Raw Normal View History

2024-07-28 20:28:08 +03:00
#! /bin/bash
set -e
2025-01-27 17:39:12 +01:00
VERSION="3.16.1git1"
2024-07-28 20:28:08 +03:00
source ./pika-build-config.sh
echo "$PIKA_BUILD_ARCH" > pika-build-arch
2023-02-25 16:08:00 +03:00
# Clone Upstream
2025-01-27 17:39:12 +01:00
#git clone --recurse-submodules https://github.com/ValveSoftware/gamescope -b 3.16.1
git clone --recurse-submodules https://github.com/ValveSoftware/gamescope
2024-07-28 20:28:08 +03:00
cp -rvf ./debian ./gamescope/
2023-02-25 16:08:00 +03:00
cd ./gamescope
2024-07-28 20:28:08 +03: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 16:08:00 +03:00
# Get build deps
apt-get build-dep ./ -y
# Build package
2024-07-28 20:28:08 +03:00
LOGNAME=root dh_make --createorig -y -l -p gamescope_"$VERSION" || echo "dh-make: Ignoring Last Error"
2024-11-19 21:53:00 +01:00
dpkg-buildpackage --no-sign -j32
2023-02-25 16:08:00 +03:00
# Move the debs to output
cd ../
mkdir -p ./output
mv ./*.deb ./output/