2024-07-30 01:03:13 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
VERSION="24.1.1"
|
|
|
|
|
|
|
|
source ./pika-build-config.sh
|
|
|
|
|
|
|
|
echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
|
|
|
|
2023-02-25 12:21:52 +01:00
|
|
|
# Clone Upstream
|
2024-07-30 01:03:13 +02:00
|
|
|
git clone https://gitlab.freedesktop.org/xorg/xserver -b xwayland-"$VERSION" ./xwayland
|
2023-07-14 18:43:36 +02:00
|
|
|
cp -rvf ./debian ./xwayland/
|
2023-02-25 12:21:52 +01:00
|
|
|
cd ./xwayland
|
2023-11-11 15:50:28 +01:00
|
|
|
for i in $(cat ../patches/series) ; do echo "Applying Patch: $i" && patch -Np1 -i ../patches/$i || bash -c "echo "Applying Patch $i Failed!" && exit 2"; done
|
2023-02-25 12:21:52 +01:00
|
|
|
|
|
|
|
# Get build deps
|
|
|
|
apt-get build-dep ./ -y
|
|
|
|
|
|
|
|
# Build package
|
2024-07-30 01:03:13 +02:00
|
|
|
LOGNAME=root dh_make --createorig -y -l -p xwayland_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
2023-07-14 18:43:36 +02:00
|
|
|
dpkg-buildpackage --no-sign
|
2023-02-25 12:21:52 +01:00
|
|
|
|
|
|
|
# Move the debs to output
|
|
|
|
cd ../
|
|
|
|
mkdir -p ./output
|
|
|
|
mv ./*.deb ./output/
|