2d2c832970
Some checks failed
PikaOS Package Build Only (Canary) (amd64-v3) / build (push) Successful in 10s
PikaOS Package Build Only (amd64-v3) / build (push) Failing after 1s
PikaOS Package Build & Release (Canary) (amd64-v3) / build (push) Successful in 12s
PikaOS Package Build & Release (amd64-v3) / build (push) Failing after 0s
29 lines
831 B
Bash
Executable File
29 lines
831 B
Bash
Executable File
#! /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 <hotrod.master@hotmail.com> 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/
|