diff --git a/main.sh b/main.sh index 1b2a709..2c8b070 100755 --- a/main.sh +++ b/main.sh @@ -13,10 +13,10 @@ git clone https://github.com/pop-os/cosmic-settings.git cd cosmic-settings # Get build deps +awk '{gsub(/(,[ \t]*)?cargo(,[ \t]*)?|,[ \t]*cargo|cargo(,[ \t]*)?/, ""); gsub(/(,[ \t]*)?rustc(,[ \t]*)?|,[ \t]*rustc|rustc(,[ \t]*)?/, ""); print}' ./debian/control > ./debian/control.tmp && mv ./debian/control.tmp ./debian/control apt-get build-dep ./ -y apt-get install curl -y curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | CARGO_HOME=/root/.cargo sh -s -- -y -awk '{gsub(/(,[ \t]*)?cargo(,[ \t]*)?|,[ \t]*cargo|cargo(,[ \t]*)?/, ""); gsub(/(,[ \t]*)?rustc(,[ \t]*)?|,[ \t]*rustc|rustc(,[ \t]*)?/, ""); print}' ./debian/control > ./debian/control.tmp && mv ./debian/control.tmp ./debian/control LOGNAME=root dh_make --createorig -y -l -p cosmic-settings_"$VERSION" || echo "dh-make: Ignoring Last Error" # Build package