Drawing: use pkg-install

pull/942/head
Botspot 4 years ago
parent ab74bdec6c
commit bf8b2ca5ee

@ -17,5 +17,6 @@ fi
rm -f ~/drawing.deb
wget -O ~/drawing.deb "https://launchpad.net/~cartes/+archive/ubuntu/drawing/+files/drawing_0.8.3-0ubuntu1~hirsute_armhf.deb" || error "Failed to download drawing.deb"
sudo apt install -yf ~/drawing.deb || error "APT failed to install drawing.deb"
"${DIRECTORY}/pkg-install" "$HOME/drawing.deb" "$(dirname "$0")" || error "APT failed to install drawing.deb"
rm -f ~/drawing.deb

@ -12,5 +12,5 @@ function error {
rm -f ~/drawing.deb
wget -O ~/drawing.deb "https://launchpad.net/~cartes/+archive/ubuntu/drawing/+files/drawing_0.8.3-0ubuntu1~hirsute_arm64.deb" || error "Failed to download drawing.deb"
sudo apt install -yf ~/drawing.deb || error "APT failed to install drawing.deb"
"${DIRECTORY}/pkg-install" "$HOME/drawing.deb" "$(dirname "$0")" || error "APT failed to install drawing.deb"
rm -f ~/drawing.deb

@ -7,6 +7,4 @@ function error {
exit 1
}
if command -v drawing >/dev/null ;then
sudo apt purge -y drawing || error "apt failed to uninstall the 'drawing' package."
fi
"${DIRECTORY}/purge-installed" "$(dirname "$0")" || exit 1 || error "apt failed to uninstall the 'drawing' package."

Loading…
Cancel
Save