Update main.sh

This commit is contained in:
Ward Nakchbandi (Cosmic Fusion) 2023-09-30 11:05:34 +03:00 committed by GitHub
parent e251a7a33a
commit 563275711c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,9 +3,11 @@
DEBIAN_FRONTEND=noninteractive DEBIAN_FRONTEND=noninteractive
# Clone Upstream # Clone Upstream
mkdir -p ./src-pkg-name git clone https://gitlab.freedesktop.org/hadess/switcheroo-control -b 2.6
cp -rvf ./debian ./src-pkg-name/ cp -rvf ./debian ./switcheroo-control/
cd ./src-pkg-name/ cd ./switcheroo-control
for i in ../patches/* ; do echo "Applying Patch: $i" && patch -Np1 -i $i || echo "Applying Patch $i Failed!"; done
# Get build deps # Get build deps
apt-get build-dep ./ -y apt-get build-dep ./ -y