-
Notifications
You must be signed in to change notification settings - Fork 2
/
install.sh
executable file
·161 lines (148 loc) · 6.16 KB
/
install.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
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
#!/bin/sh
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software Foundation,
# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
if [ "$1" = "uninstall" ]; then
rm -f /etc/xdg/menus/applications-merged/sparky-wine.menu
rm -f /usr/bin/sparky-wine
#rm -f /usr/lib/sparkycenter/software/sparky-wine.desktop
rm -f /usr/share/applications/sparky-wine.desktop
rm -f /usr/share/menu/sparky-wine
rm -f usr/share/desktop-directories/sparky-wine.directory
rm -rf /usr/share/sparky/sparky-wine
# postrm
if [ -f /usr/share/applications/sparky-wine-uninstaller.desktop ]; then
rm -f /usr/share/applications/sparky-wine-uninstaller.desktop
fi
if [ -f /usr/share/applications/sparky-wine-winecfg.desktop ]; then
rm -f /usr/share/applications/sparky-wine-winecfg.desktop
fi
if [ -x "`which update-menus 2>/dev/null`" ]; then
update-menus
fi
else
cp etc/* /etc/xdg/menus/applications-merged/
cp bin/* /usr/bin/
#if [ ! -d /usr/lib/sparkycenter/software ]; then
# mkdir -p /usr/lib/sparkycenter/software
#fi
#cp share/sparky-wine.desktop /usr/lib/sparkycenter/software/
cp share/sparky-wine.desktop /usr/share/applications/
cp share/sparky-wine /usr/share/menu/
cp share/sparky-wine.directory /usr/share/desktop-directories
if [ ! -d /usr/share/sparky/sparky-wine ]; then
mkdir -p /usr/share/sparky/sparky-wine
fi
cp lang/* /usr/share/sparky/sparky-wine/
# postinstall
if [ -f /usr/bin/wine ] || [ -f /usr/bin/wine-stable ]; then
if [ ! -f /usr/share/applications/wine-uninstaller.desktop ]; then
cat > /usr/share/applications/sparky-wine-uninstaller.desktop <<FOO
[Desktop Entry]
Name=Uninstall Wine Software
Name[ca]=Elimineu programes del Wine
Name[cs]=Odinstalovat software z Wine
Name[da]=Fjern Wine software
Name[de]=Deinstalliere Wine Applikationen
Name[el]=Απεγκατάσταση προγραμμάτων Wine
Name[es]=Desinstala software de Wine
Name[eu]=Desinstalatu Wine-ko softwarea
Name[fi]=Poista Wine-ohjelmien asennuksia
Name[fr]=Désinstaller un logiciel Wine
Name[he]=הסרת תוכנות מ־Wine
Name[hu]=Wine szoftverek eltávolítása
Name[it]=Disinstalla software di Wine
Name[lt]=Pašalinti Wine programas
Name[nl]=Wine programma's verwijderen
Name[pl]=Deinstalacja oprogramowania Wine
Name[pt]=Desinstalar Programas do Wine
Name[pt_br]=Gerenciador de Programas do Wine
Name[ru]=Удаление программ Wine
Name[sv]=Avinstallera Wine-programvara
Name[zh_CN]=卸载 Wine 软件
Comment=Uninstall Windows applications for Wine
Comment[ca]=Elimineu programes del Windows que hageu instaŀlat amb el Wine
Comment[cs]=Odinstalovat software pro Windows z prostředí Wine
Comment[de]=Wine Applikations Deinstallations Programm
Comment[el]=Απεγκατάσταση προγραμμάτων Windows από το Wine
Comment[es]=Desinstala una aplicación Windows en Wine
Comment[fi]=Poista Wineen asennettuja Windows-sovelluksia
Comment[hu]=Windows alkalmazások eltávolítása a Wine-ból
Comment[it]=Disinstalla le applicazioni Windows per Wine
Comment[nl]=Verwijder Windows programma's voor Wine
Comment[pl]=Deinstalowanie oprogramowania dla Wine
Comment[pt_br]=Desinstalar ou Reparar um Programa instalado no Wine
Comment[ru]=Удаление Windows-программ, установленных под Wine
Comment[sv]=Avinstallera Windows-program för Wine
Comment[zh_CN]=卸载使用 Wine 安装的 Windows 应用程序
Exec=wine uninstaller
Terminal=false
Type=Application
Icon=wine-uninstaller
Categories=Applications;WineConfig
FOO
fi
fi
if [ -f /usr/bin/winecfg ]; then
if [ ! -f /usr/share/applications/wine-winecfg.desktop ]; then
cat > /usr/share/applications/sparky-wine-winecfg.desktop <<FOO
[Desktop Entry]
Name=Configure Wine
Name[ca]=Configureu el Wine
Name[cs]=Nastavení Wine
Name[da]=Konfigurer Wine
Name[de]=Konfiguriere Wine
Name[el]=Ρύθμιση Wine
Name[es]=Configurar Wine
Name[eu]=Konfiguratu Wine
Name[fi]=Winen asetukset
Name[fr]=Configurer Wine
Name[he]=תצורת Wine
Name[hu]=A Wine beállítása
Name[it]=Configura Wine
Name[lt]=Wine nustatymai
Name[nl]=Wine configureren
Name[pl]=Konfiguracja Wine
Name[pt]=Configurar o Wine
Name[pt_br]=Configurar o Wine
Name[ru]=Настройка Wine
Name[sv]=Konfigurera Wine
Name[zh_CN]=Wine 设置
Comment=Change application-specific and general Wine options
Comment[ca]=Canvieu la configuració general del Wine i especifiqueu opcions per a programes concrets
Comment[cs]=Upravit specifická nastavení aplikací a obecné nastavení Wine
Comment[de]=Ändere Wine Optionen und Applikations-spezifische Einstellungen
Comment[el]=Αλλαγή γενικών ρυθμίσεων του Wine ή επιλογών εφαρμογών
Comment[es]=Cambia la configuración de Wine en general o de una aplicación específica
Comment[fi]=Muuta yleisiä ja sovelluskohtaisia Winen asetuksia
Comment[hu]=Alkalmazásspecifikus és általános Wine beállítások módosítása
Comment[it]=Cambia le opzioni delle singole applicazioni e quelle generali di Wine
Comment[nl]=Verander instellingen voor specifieke programma's en Wine in het algemeen
Comment[pl]=Konfigurowanie ustawień aplikacji i ogólnych opcji Wine
Comment[pt_br]=Configurar as opções do Wine e dos programas nele instalados
Comment[ru]=Изменение общих параметров Wine и настройка параметров для отдельных приложений
Comment[sv]=Ändra programspecifika och allmänna Wine-alternativ
Comment[zh_CN]=修改用于特定应用程序和常规的 Wine 选项
Exec=winecfg
Terminal=false
Icon=wine-winecfg
Type=Application
Categories=Applications;WineConfig
FOO
fi
fi
if [ -x "`which update-menus 2>/dev/null`" ]; then
update-menus
fi
fi