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-07-01 18:55:36 +02:00
|
|
|
# Dead Pika Release Quirk??
|
2024-07-01 18:57:30 +02:00
|
|
|
apt-get install libglib2.0-0=2.78.0-2 libglib2.0-bin=2.78.0-2 libglib2.0-dev-bin=2.78.0-2 -y --allow-downgrades
|
2024-07-01 18:55:36 +02:00
|
|
|
|
2024-07-01 18:50:28 +02:00
|
|
|
DEBIAN_FRONTEND=noninteractive
|
2024-07-01 18:45:16 +02:00
|
|
|
|
2023-06-10 17:21:41 +02:00
|
|
|
# Clone Upstream
|
2024-07-01 19:21:53 +02:00
|
|
|
git clone -b v0.41.2 --depth=1 https://github.com/hyprwm/Hyprland ./hyprland
|
|
|
|
cp -rvf ./debian ./hyprland/debian
|
|
|
|
cd ./hyprland
|
2023-06-10 17:35:52 +02:00
|
|
|
|
2023-06-10 21:24:44 +02:00
|
|
|
#sed -i 's/\/usr\/local/\/usr/g' config.mk
|
2024-07-01 18:11:11 +02:00
|
|
|
#sed -E -i -e 's/(soversion = 12)([^032]|$$)/soversion = 12032/g' subprojects/wlroots/meson.build
|
2023-06-10 17:35:52 +02:00
|
|
|
|
2023-06-10 17:21:41 +02:00
|
|
|
# Get build deps
|
2023-07-26 17:36:06 +02:00
|
|
|
apt-get update
|
2023-06-10 17:21:41 +02:00
|
|
|
apt-get build-dep ./ -y
|
|
|
|
|
|
|
|
# Build package
|
|
|
|
dpkg-buildpackage --no-sign
|
|
|
|
|
|
|
|
# Move the debs to output
|
|
|
|
cd ../
|
|
|
|
mkdir -p ./output
|
|
|
|
mv ./*.deb ./output/
|