aquamarine/main.sh

26 lines
523 B
Bash
Raw Normal View History

2024-08-26 00:19:11 +02:00
#! /bin/bash
set -e
2024-09-03 15:54:31 +02:00
VERSION="0.4.0"
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-09-03 15:54:31 +02: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/