forked from erikdubois/Ultimate-Linux-Mint-18-Cinnamon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-cool-retro-term-v1.sh
executable file
·47 lines (37 loc) · 2.09 KB
/
install-cool-retro-term-v1.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/bin/bash
#
##################################################################################################################
# Written to be used on 64 bits computers
# Author : Erik Dubois
# Website : http://www.erikdubois.be
##################################################################################################################
##################################################################################################################
#
# DO NOT JUST RUN THIS. EXAMINE AND JUDGE. RUN AT YOUR OWN RISK.
#
##################################################################################################################
set -e
# if there is an instance, delete it first - clean start
[ -d "/opt/cool-retro-term" ] && sudo rm -rf /opt/cool-retro-term
[ -d "/tmp/cool-retro-term" ] && sudo rm -rf /tmp/cool-retro-term
[ -f "/usr/share/applications/cool-retro-term.desktop" ] && sudo rm /usr/share/applications/cool-retro-term.desktop
[ -L "/usr/bin/cool-retro-term" ] && sudo rm /usr/bin/cool-retro-term
# Installing dependencies
sudo apt-get install -y build-essential qmlscene qt5-qmake qt5-default qtdeclarative5-dev
sudo apt-get install -y qtdeclarative5-controls-plugin qtdeclarative5-qtquick2-plugin libqt5qml-graphicaleffects
sudo apt-get install -y qtdeclarative5-dialogs-plugin qtdeclarative5-localstorage-plugin qtdeclarative5-window-plugin
# Get it from GitHub
git clone --recursive https://github.com/Swordfish90/cool-retro-term.git /tmp/cool-retro-term
# Change directory
cd /tmp/cool-retro-term
# Build it and compile
sudo qmake && make
# moving the result to /opt
sudo mkdir /opt/cool-retro-term
sudo cp -r /tmp/cool-retro-term/* /opt/cool-retro-term
sudo cp /opt/cool-retro-term/cool-retro-term.desktop /usr/share/applications/
sudo ln -s /opt/cool-retro-term/cool-retro-term /usr/bin/cool-retro-term
[ -d /tmp/cool-retro-term ] && sudo rm -rf /tmp/cool-retro-term
echo "################################################################"
echo "################### T H E E N D ######################"
echo "################################################################"