2024-12-28 13:14:28 +01:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
. ./pika-build-config.sh
|
|
|
|
|
|
|
|
echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
|
|
|
|
2025-01-01 12:53:10 +01:00
|
|
|
VERSION="1.0.1"
|
2024-12-28 13:14:28 +01:00
|
|
|
|
|
|
|
# Clone Upstream
|
2024-12-28 14:07:02 +01:00
|
|
|
git clone --recurse-submodules https://github.com/ghostty-org/ghostty.git
|
2024-12-28 13:14:28 +01:00
|
|
|
cp -rvf ./debian ./ghostty/
|
|
|
|
cd ./ghostty
|
2024-12-29 12:11:31 +01:00
|
|
|
git checkout bee21880149129f9373a35e9df0d39c223481709
|
2024-12-28 13:14:28 +01:00
|
|
|
|
|
|
|
# Get build deps
|
2024-12-29 12:05:17 +01:00
|
|
|
LOGNAME=root dh_make --createorig -y -l -p ghostty-glfw_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
2024-12-28 13:14:28 +01:00
|
|
|
apt-get build-dep ./ -y
|
|
|
|
|
|
|
|
# Build package
|
|
|
|
dpkg-buildpackage --no-sign
|
|
|
|
|
|
|
|
# Move the debs to output
|
|
|
|
cd ../
|
|
|
|
mkdir -p ./output
|
|
|
|
mv ./*.deb ./output/
|