28 lines
689 B
Bash
Executable File
28 lines
689 B
Bash
Executable File
#! /bin/bash
|
|
|
|
DEBIAN_FRONTEND=noninteractive
|
|
|
|
# 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
|
|
cp -rvf ./jupiter-hw-support/usr ./jupiter-fan-control
|
|
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
|
|
|
|
# Patch
|
|
for i in ../patches/*.patch; do patch -Np1 -i $i ;done
|
|
|
|
# Build package
|
|
dpkg-buildpackage --no-sign
|
|
|
|
# Move the debs to output
|
|
cd ../
|
|
mkdir -p ./output
|
|
mv ./*.deb ./output/
|