2024-08-26 00:19:11 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2024-12-16 15:52:23 +01:00
|
|
|
VERSION="0.5.1"
|
2024-08-26 00:19:11 +02:00
|
|
|
|
2024-08-26 00:33:36 +02:00
|
|
|
source ./pika-build-config.sh
|
2024-08-26 00:19:11 +02:00
|
|
|
|
2024-08-26 00:33:36 +02:00
|
|
|
echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
2024-08-26 00:19:11 +02:00
|
|
|
|
|
|
|
# Clone Upstream
|
2024-12-16 15:53:42 +01:00
|
|
|
git clone --recurse-submodules https://github.com/hyprwm/aquamarine -b v"$VERSION"
|
2024-08-26 00:33:36 +02:00
|
|
|
cp -rvf ./debian ./aquamarine/
|
|
|
|
cd ./aquamarine
|
2024-08-26 00:19:11 +02:00
|
|
|
|
|
|
|
# Get build deps
|
|
|
|
apt-get build-dep ./ -y
|
|
|
|
|
|
|
|
# Build package
|
2024-08-26 00:33:36 +02:00
|
|
|
LOGNAME=root dh_make --createorig -y -l -p aquamarine_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
2024-08-26 00:19:11 +02:00
|
|
|
dpkg-buildpackage --no-sign
|
|
|
|
|
|
|
|
# Move the debs to output
|
|
|
|
cd ../
|
|
|
|
mkdir -p ./output
|
2024-08-26 00:33:36 +02:00
|
|
|
mv ./*.deb ./output/
|