2024-08-29 00:11:00 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2024-09-27 17:54:09 +02:00
|
|
|
VERSION="4.1.0"
|
2024-08-29 00:11:00 +02:00
|
|
|
|
|
|
|
source ./pika-build-config.sh
|
|
|
|
|
|
|
|
echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
|
|
|
|
2023-02-25 11:39:03 +01:00
|
|
|
# Clone Upstream
|
2024-08-29 00:11:00 +02:00
|
|
|
mkdir -p pika-gnome-layouts
|
|
|
|
cp -rvf ./* ./pika-gnome-layouts/ || true
|
|
|
|
cd ./pika-gnome-layouts/
|
2023-02-25 11:39:03 +01:00
|
|
|
|
|
|
|
# Get build deps
|
|
|
|
apt-get build-dep ./ -y
|
2024-08-29 00:11:00 +02:00
|
|
|
apt-get install curl -y
|
|
|
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | CARGO_HOME=/root/.cargo sh -s -- -y
|
2023-02-25 11:39:03 +01:00
|
|
|
|
|
|
|
# Build package
|
2024-08-29 00:11:00 +02:00
|
|
|
LOGNAME=root dh_make --createorig -y -l -p pika-gnome-layouts_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
|
|
|
dpkg-buildpackage --no-sign
|
2023-02-25 11:39:03 +01:00
|
|
|
|
|
|
|
# Move the debs to output
|
|
|
|
cd ../
|
|
|
|
mkdir -p ./output
|
2024-08-29 00:11:00 +02:00
|
|
|
mv ./*.deb ./output/
|