hyprland/main.sh

27 lines
507 B
Bash
Raw Normal View History

2023-06-10 17:21:41 +02:00
#! /bin/bash
2024-07-01 18:50:28 +02:00
set -e
2023-06-10 17:21:41 +02:00
2024-09-01 22:31:23 +02:00
VERSION="0.42.0-git6"
2024-07-01 18:55:36 +02:00
2024-07-27 16:05:52 +02:00
source ./pika-build-config.sh
echo "$PIKA_BUILD_ARCH" > pika-build-arch
2024-07-01 18:45:16 +02:00
2023-06-10 17:21:41 +02:00
# Clone Upstream
2024-08-30 11:58:57 +02:00
git clone --recurse-submodules https://github.com/hyprwm/hyprland
2024-07-27 16:05:52 +02:00
cp -rvf ./debian ./hyprland/
2024-07-01 19:21:53 +02:00
cd ./hyprland
2023-06-10 17:35:52 +02:00
2023-06-10 17:21:41 +02:00
# Get build deps
apt-get build-dep ./ -y
# Build package
2024-07-27 16:05:52 +02:00
LOGNAME=root dh_make --createorig -y -l -p hyprland_"$VERSION" || echo "dh-make: Ignoring Last Error"
2023-06-10 17:21:41 +02:00
dpkg-buildpackage --no-sign
# Move the debs to output
cd ../
mkdir -p ./output
mv ./*.deb ./output/