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