-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathINSTALL
executable file
·48 lines (40 loc) · 1.49 KB
/
INSTALL
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
48
#!/usr/bin/sh sh
ORCA_URL="https://github.com/cee-studio/orca"
(clear)
touch config/token.h
echo -e "\n${YELLOW}[${WHITE}/${YELLOW}]${YELLOW} Checking dependencies..."
if [[ `command -v make` && `command -v gtk-launch` && `command -v zenity` && `command -v cowsay` && `command -v lolcat` ]]; then
echo -e "${YELLOW}[${WHITE}+${YELLOW}]${YELLOW} Packages already installed."
echo ""
else
pkgs=(make gtk3 zenity cowsay lolcat)
for pkg in "${pkgs[@]}"; do
type -p "$pkg" &>/dev/null || {
echo -e "\n${YELLOW}[${WHITE}+${YELLOW}]${WHITE} Installing package : ${ORANGE}$pkg${CYAN}"${WHITE}
if [[ `command -v pkg` ]]; then
pkg install "$pkg" -y
elif [[ `command -v apt` ]]; then
apt install "$pkg" -y
elif [[ `command -v apt-get` ]]; then
apt-get install "$pkg" -y
elif [[ `command -v pacman` ]]; then
sudo pacman -S "$pkg" --noconfirm
elif [[ `command -v dnf` ]]; then
sudo dnf -y install "$pkg"
else
echo -e "\n${RED}[${WHITE}!${RED}]${RED} Unsupported package manager, Install packages manually."
{ reset_color; exit 1; }
fi
}
done
fi
(make dist 2> /dev/null)
(sudo cp build/krokodil /usr/bin/krokodil)
(cp public/krokodil.png $HOME/.icons/krokodil.png)
(desktop-file-validate krokodil.desktop)
(desktop-file-install --dir=$HOME/.local/share/applications krokodil.desktop)
(update-desktop-database ~/.local/share/applications)
#Orca
(git clone $ORCA_URL /tmp/orca)
(cd /tmp/orca && make && sudo make install)
(cowsay "Welcome to Krokodil" 2> /dev/null | lolcat)