2023-07-15 10:37:51 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
2024-07-25 13:38:20 +02:00
|
|
|
set -e
|
|
|
|
|
|
|
|
VERSION="20221214.1"
|
|
|
|
|
|
|
|
source ./pika-build-config.sh
|
|
|
|
|
|
|
|
echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
2023-04-27 18:12:29 +02:00
|
|
|
|
|
|
|
# Clone Upstream
|
|
|
|
git clone https://github.com/KyleGospo/jupiter-fan-control
|
|
|
|
git clone https://github.com/KyleGospo/jupiter-hw-support
|
|
|
|
mkdir -p ./steamdeck-jupiter-driver
|
2023-07-15 11:09:56 +02:00
|
|
|
cp -rvf ./jupiter-fan-control/usr ./steamdeck-jupiter-driver
|
2023-04-27 18:12:29 +02:00
|
|
|
cp -rvf ./jupiter-hw-support/etc ./steamdeck-jupiter-driver
|
|
|
|
cp -rvf ./jupiter-hw-support/usr ./steamdeck-jupiter-driver
|
|
|
|
cp -rvf ./debian ./steamdeck-jupiter-driver
|
|
|
|
cd ./steamdeck-jupiter-driver
|
|
|
|
|
|
|
|
# Get build deps
|
|
|
|
apt-get build-dep ./ -y
|
2023-07-15 11:00:29 +02:00
|
|
|
for i in ../patches/*.patch; do patch -Np1 -i $i;done
|
2023-09-29 13:50:41 +02:00
|
|
|
rm -rfv ./usr/lib/systemd/system/multi-user.target.wants
|
2023-07-15 10:37:51 +02:00
|
|
|
|
2023-04-27 18:12:29 +02:00
|
|
|
# Build package
|
2024-07-25 13:38:20 +02:00
|
|
|
LOGNAME=root dh_make --createorig -y -l -p steamdeck-jupiter-driver_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
2023-07-15 10:37:51 +02:00
|
|
|
dpkg-buildpackage --no-sign
|
2023-04-27 18:12:29 +02:00
|
|
|
|
|
|
|
# Move the debs to output
|
|
|
|
cd ../
|
|
|
|
mkdir -p ./output
|
|
|
|
mv ./*.deb ./output/
|