fabiscafe-devices/main.sh

29 lines
831 B
Bash
Raw Normal View History

2023-03-18 13:20:15 +01:00
#! /bin/bash
2023-06-16 20:28:57 +02:00
2024-07-28 12:58:12 +02:00
set -e
VERSION="$(date '+%Y%m%d').git"
source ./pika-build-config.sh
echo "$PIKA_BUILD_ARCH" > pika-build-arch
2023-03-18 13:20:15 +01:00
# 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/
2024-07-28 12:58:12 +02:00
echo -e "game-devices-udev ($VERSION-101pika1) pika; urgency=medium\n\n * New Upstream Release\n\n -- Ward Nakchbandi <hotrod.master@hotmail.com> Sat, 01 Oct 2022 14:50:00 +0200" > game-devices-udev/debian/changelog
2023-03-18 13:30:18 +01:00
cd ./game-devices-udev
2023-03-18 13:20:15 +01:00
# Get build deps
apt-get build-dep ./ -y
# Build package
2024-07-28 12:58:12 +02:00
LOGNAME=root dh_make --createorig -y -l -p game-devices-udev_"$VERSION" || echo "dh-make: Ignoring Last Error"
2023-03-18 13:30:18 +01:00
dpkg-buildpackage --no-sign
2023-03-18 13:20:15 +01:00
# Move the debs to output
cd ../
mkdir -p ./output
mv ./*.deb ./output/