pika-installer-gtk4/main.sh

29 lines
621 B
Bash
Raw Normal View History

2024-07-31 14:20:30 +02:00
#! /bin/bash
set -e
2024-10-26 21:41:45 +02:00
VERSION="2.0.1"
2024-07-31 14:20:30 +02:00
source ./pika-build-config.sh
echo "$PIKA_BUILD_ARCH" > pika-build-arch
2024-01-24 20:17:19 +01:00
# Clone Upstream
2024-07-31 14:20:30 +02:00
mkdir -p pika-installer-gtk4
cp -rvf ./* ./pika-installer-gtk4/ || true
cd ./pika-installer-gtk4/
2024-01-24 20:17:19 +01:00
# Get build deps
apt-get build-dep ./ -y
2024-02-20 21:22:11 +01:00
apt-get install curl -y
2024-02-20 21:35:25 +01:00
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | CARGO_HOME=/root/.cargo sh -s -- -y
2024-01-24 20:17:19 +01:00
# Build package
2024-07-31 14:20:30 +02:00
LOGNAME=root dh_make --createorig -y -l -p pika-installer-gtk4_"$VERSION" || echo "dh-make: Ignoring Last Error"
2024-01-24 20:17:19 +01:00
dpkg-buildpackage --no-sign
# Move the debs to output
cd ../
mkdir -p ./output
mv ./*.deb ./output/