#! /bin/bash set -e VERSION="$(date '+%Y%m%d').git" source ./pika-build-config.sh echo "$PIKA_BUILD_ARCH" > pika-build-arch # Clone Upstream git clone https://codeberg.org/fabiscafe/game-devices-udev rules mkdir -p ./game-devices-udev/etc/udev/rules.d/ cp -rvf ./rules/*.rules ./game-devices-udev/etc/udev/rules.d/ echo -e "game-devices-udev ($VERSION-101pika1) pika; urgency=medium\n\n * New Upstream Release\n\n -- Ward Nakchbandi Sat, 01 Oct 2022 14:50:00 +0200" > game-devices-udev/debian/changelog cd ./game-devices-udev # Get build deps apt-get build-dep ./ -y # Build package LOGNAME=root dh_make --createorig -y -l -p game-devices-udev_"$VERSION" || echo "dh-make: Ignoring Last Error" dpkg-buildpackage --no-sign # Move the debs to output cd ../ mkdir -p ./output mv ./*.deb ./output/