-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathpkg_splat
executable file
·82 lines (69 loc) · 2.38 KB
/
pkg_splat
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/bin/bash
###
### SIGPI
###
### pkg_splat
###
case "$1" in
remove )
echo -e "${SIGPI_BANNER_COLOR}"
echo -e "${SIGPI_BANNER_COLOR} ## Remove SPLAT"
echo -e "${SIGPI_BANNER_RESET}"
sudo apt-get remove splat
sed -i /splat/d $SIGPI_INSTALLED
### Remove Menu icon
sudo rm $SIGPI_DESKTOP_ICONS/splat.png
### Remove Desktop links
sudo rm $SIGPI_DESKTOP_FILES/splat.desktop
echo -e "${SIGPI_BANNER_COLOR}"
echo -e "${SIGPI_BANNER_COLOR} ## SPLAT Removed"
echo -e "${SIGPI_BANNER_RESET}"
;;
purge )
echo -e "${SIGPI_BANNER_COLOR}"
echo -e "${SIGPI_BANNER_COLOR} ## Purge SPLAT"
echo -e "${SIGPI_BANNER_RESET}"
sudo apt-get remove --purge splat
sed -i /splat/d $SIGPI_INSTALLED
### Remove Menu icon
sudo rm $SIGPI_DESKTOP_ICONS/splat.png
### Remove Desktop links
sudo rm $SIGPI_DESKTOP_FILES/splat.desktop
echo -e "${SIGPI_BANNER_COLOR}"
echo -e "${SIGPI_BANNER_COLOR} ## SPLAT Purged"
echo -e "${SIGPI_BANNER_RESET}"
;;
install )
echo -e "${SIGPI_BANNER_COLOR}"
echo -e "${SIGPI_BANNER_COLOR} ##"
echo -e "${SIGPI_BANNER_COLOR} ## Install SPLAT"
echo -e "${SIGPI_BANNER_COLOR} ##"
echo -e "${SIGPI_BANNER_RESET}"
## DEPENDENCIES
## PACKAGE
cd $SIGPI_SOURCE
sudo apt-get install -y splat
cat $SIGPI_PKGLIST|grep "splat" >> $SIGPI_INSTALLED
## DESKTOP
# Add Icon
sudo cp $SIGPI_ICONS/splat.png $DESKTOP_ICONS
# Add Desktop
sudo cp $SIGPI_HOME/desktop/splat.desktop $DESKTOP_FILES
# Change Category
# Add to Menu
xdg-desktop-menu install --novendor --noupdate $DESKTOP_DIRECTORY/SIGpi.directory $DESKTOP_FILES/splat.desktop
echo -e "${SIGPI_BANNER_COLOR}"
echo -e "${SIGPI_BANNER_COLOR} ## SPLAT Installed"
echo -e "${SIGPI_BANNER_RESET}"
;;
build )
echo -e "${SIGPI_BANNER_COLOR}"
echo -e "${SIGPI_BANNER_COLOR} ## SIGpi Build option not available"
echo -e "${SIGPI_BANNER_RESET}"
;;
* )
echo -e "${SIGPI_BANNER_COLOR}"
echo -e "${SIGPI_BANNER_COLOR} ## ERROR: Unkown action or package"
echo -e "${SIGPI_BANNER_RESET}"
;;
esac