27 lines
535 B
Bash
Raw Permalink Normal View History

2025-02-07 16:41:44 +01:00
#! /bin/bash
set -e
. ./pika-build-config.sh
echo "$PIKA_BUILD_ARCH" > pika-build-arch
2025-02-07 15:46:17 +00:00
VERSION="0.6.2"
2025-02-07 16:41:44 +01:00
# Clone Upstream
2025-02-07 15:46:17 +00:00
git clone https://github.com/hyprwm/hyprland-protocols.git -b v"$VERSION"
cp -rvf ./debian ./hyprland-protocols/
cd ./hyprland-protocols/
2025-02-07 16:41:44 +01:00
# Get build deps
2025-02-07 15:46:17 +00:00
LOGNAME=root dh_make --createorig -y -l -p hyprland-protocols_"$VERSION" || echo "dh-make: Ignoring Last Error"
2025-02-07 16:41:44 +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/