-
Notifications
You must be signed in to change notification settings - Fork 0
/
unr4r.sh
32 lines (27 loc) · 867 Bytes
/
unr4r.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash
#Autore: Giulio Sorrentino <[email protected]>
if [ ! -f "/etc/debian_version" ]; then
echo "Non sei su debian. Il programma termina."
exit 1
fi
sudo apt update
sudo apt install dpkg-dev devscripts dialog -y
apt source unrar
if [ $? -ne 0 ]; then
dialog --title "Errore" \
--backtitle "Errore" \
--msgbox "Si è verificato un errore, probabilmente devi abilitare i source repository" 7 60
exit 1
fi
sudo apt build-dep unrar
cd unrar-nonfree-?.?.?
dpkg-buildpackage
cd ..
mv unrar_*.deb ~/Scaricati
mv libunrar*.deb ~/Scaricati
rm -rf *unrar*
sudo dpkg -i ~/Scaricati/unrar_*.deb
dialog --title "Tutto Fatto" \
--backtitle "OK" \
--msgbox "Il pacchetto unrar nonfree è già stato installato, ed è disponibile nella cartella download, tuttavia non può essere passato a terzi.
Se ti è piaciuto questo software considera una donazione.", 40 60