generated from cosmic-packages/cosmic-applets
Update main.sh
This commit is contained in:
parent
8c66e84e1e
commit
70dc366470
8
main.sh
8
main.sh
@ -12,9 +12,15 @@ VERSION="0.1.0"
|
||||
git clone https://github.com/pop-os/cosmic-term.git
|
||||
cd cosmic-term
|
||||
|
||||
sed -i '/^\s*\(cargo\|rustc\|rust-all\)\s*\(([^)]*)\)\?\s*,\?$/d; s/,\s*\(cargo\|rustc\|rust-all\)\s*\(([^)]*)\)\?\s*,\?//g' ./debian/control
|
||||
sed -i '2iexport PATH := $(shell . /root/.cargo/env && echo $$PATH)\nexport $(shell . /root/.cargo/env && env | grep "^CARGO_\|^RUSTUP_" | sed "s/=/:=/")\n' ./debian/rules
|
||||
# Get build deps
|
||||
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
|
||||
|
||||
# Get build deps
|
||||
LOGNAME=root dh_make --createorig -y -l -p cosmic-term_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
||||
apt-get build-dep ./ -y
|
||||
|
||||
# Build package
|
||||
dpkg-buildpackage --no-sign
|
||||
|
Loading…
x
Reference in New Issue
Block a user