generated from cosmic-packages/cosmic-applets
Update main.sh
This commit is contained in:
parent
3b612d9bb1
commit
d2b2a49cf8
10
main.sh
10
main.sh
@ -13,15 +13,7 @@ git clone https://github.com/pop-os/cosmic-settings.git
|
|||||||
cd cosmic-settings
|
cd cosmic-settings
|
||||||
|
|
||||||
# Get build deps
|
# Get build deps
|
||||||
perl -0777 -pe '
|
sed -i '/^\s*\(cargo\|rustc\|rust-all\)\s*\(([^)]*)\)\?\s*,\?$/d; s/,\s*\(cargo\|rustc\|rust-all\)\s*\(([^)]*)\)\?\s*,\?//g' ./debian/control
|
||||||
s{^(Build-Depends:\s*\n)(.+?)(\n\S)}{
|
|
||||||
my $start = $1;
|
|
||||||
my $deps = $2;
|
|
||||||
my $end = $3;
|
|
||||||
my @items = grep { !/^\s*(cargo|rustc|rust-all)\s*$/ }
|
|
||||||
split /,\s*\n/, $deps;
|
|
||||||
$start . join(",\n", @items) . $end;
|
|
||||||
}ems' ./debian/control > ./debian/control.tmp && mv ./debian/control.tmp ./debian/control
|
|
||||||
apt-get build-dep ./ -y
|
apt-get build-dep ./ -y
|
||||||
apt-get install curl -y
|
apt-get install curl -y
|
||||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | CARGO_HOME=/root/.cargo sh -s -- -y
|
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | CARGO_HOME=/root/.cargo sh -s -- -y
|
||||||
|
Loading…
Reference in New Issue
Block a user