diff options
-rw-r--r-- | .SRCINFO | 1 | ||||
-rw-r--r-- | PKGBUILD | 3 | ||||
-rw-r--r-- | warsaw-bin.install | 68 |
3 files changed, 37 insertions, 35 deletions
@@ -11,6 +11,7 @@ pkgbase = warsaw-bin depends = procps-ng depends = python depends = zenity + optdepends = gtk2: required on first bank setup optdepends = python-gpgme provides = warsaw conflicts = warsaw @@ -9,7 +9,8 @@ arch=(i686 x86_64) url="https://diagnostico.gasantifraud.com" license=('custom') depends=('dbus' 'procps-ng' 'python' 'zenity') -optdepends=('python-gpgme') +optdepends=('gtk2: required on first bank setup' + 'python-gpgme') backup=('etc/init.d/warsaw' 'etc/init/warsaw.conf') options=('!strip' '!emptydirs') install=${pkgname}.install diff --git a/warsaw-bin.install b/warsaw-bin.install index d6449086f082..233897c8e00e 100644 --- a/warsaw-bin.install +++ b/warsaw-bin.install @@ -1,43 +1,43 @@ post_install() { - gtk-update-icon-cache -q -t -f usr/share/icons/hicolor - - echo -e "\e[34;1m==>\e[39;1m To use Warsaw, start its service using: \e[0m" - echo -e "\e[34;1m==>\e[39;1m $ sudo systemctl start warsaw \e[0m" - echo -e "\e[34;1m==>\e[39;1m To start Warsaw at system startup, use the command: \e[0m" - echo -e "\e[34;1m==>\e[39;1m $ sudo systemctl enable warsaw \e[0m" - echo -e "\e[34;1m==>\e[39;1m Complete your bank setup on the website below: \e[0m" - echo -e "\e[34;1m==>\e[39;1m https://diagnostico.gasantifraud.com \e[0m" - - update-desktop-database -q + if [ -e "/usr/share/hunspell/pt_BR.dic" ] + then + echo -e "\e[34;1m==>\e[39;1m Para usar o Warsaw, inicie seu serviço com: \e[0m" + echo -e "\e[34;1m==>\e[39;1m $ sudo systemctl start warsaw \e[0m" + echo -e "\e[34;1m==>\e[39;1m Para iniciar o Warsaw na inicialização do sistema, utilize o comando: \e[0m" + echo -e "\e[34;1m==>\e[39;1m $ sudo systemctl enable warsaw \e[0m" + echo -e "\e[34;1m==>\e[39;1m Conclua a configuração do seu banco no site abaixo: \e[0m" + echo -e "\e[34;1m==>\e[39;1m https://diagnostico.gasantifraud.com \e[0m" + else + echo -e "\e[34;1m==>\e[39;1m To use Warsaw, start its service using: \e[0m" + echo -e "\e[34;1m==>\e[39;1m $ sudo systemctl start warsaw \e[0m" + echo -e "\e[34;1m==>\e[39;1m To start Warsaw at system startup, use the command: \e[0m" + echo -e "\e[34;1m==>\e[39;1m $ sudo systemctl enable warsaw \e[0m" + echo -e "\e[34;1m==>\e[39;1m Complete your bank setup on the website below: \e[0m" + echo -e "\e[34;1m==>\e[39;1m https://diagnostico.gasantifraud.com \e[0m" + fi } pre_remove() { - - if command -v systemctl > /dev/null 2>&1; then - systemctl stop warsaw.service - fi - - if command -v warsaw > /dev/null 2>&1; then - warsaw stop - fi - - if command -v systemctl > /dev/null 2>&1; then - systemctl disable warsaw.service - systemctl daemon-reload - fi - + if command -v systemctl > /dev/null 2>&1; then + systemctl stop warsaw.service + fi + + if command -v warsaw > /dev/null 2>&1; then + warsaw stop + fi + + if command -v systemctl > /dev/null 2>&1; then + systemctl disable warsaw.service + systemctl daemon-reload + fi } post_remove() { - gtk-update-icon-cache -q -t -f usr/share/icons/hicolor - - if command -v rm > /dev/null 2>&1; then - rm -rf /usr/local/etc/warsaw - fi - - if command -v pkill > /dev/null 2>&1; then - pkill wsatspi - fi + if command -v rm > /dev/null 2>&1; then + rm -rf /usr/local/etc/warsaw + fi - update-desktop-database -q + if command -v pkill > /dev/null 2>&1; then + pkill wsatspi + fi } |