diff options
author | Jernuh Zakalwe | 2019-07-26 13:37:39 +0200 |
---|---|---|
committer | Jernuh Zakalwe | 2019-07-26 13:37:39 +0200 |
commit | 43c40ac41c99daa74eb8fe2752fd9c32765e6b3c (patch) | |
tree | 632e03c437cf734853733c20856a42c5416dce6d /setup.sh.in | |
parent | ba9b939a34db95d84e5b791d246e8668e9e08514 (diff) | |
download | aur-43c40ac41c99daa74eb8fe2752fd9c32765e6b3c.tar.gz |
Icon-cache refresh readded, but executed only, when an cache file exists.
Added some hints about usable commands to the install script.
Diffstat (limited to 'setup.sh.in')
-rw-r--r-- | setup.sh.in | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/setup.sh.in b/setup.sh.in index 909fb2c3a38c..63c203f9b2d0 100644 --- a/setup.sh.in +++ b/setup.sh.in @@ -8,7 +8,7 @@ bootstrap_install() { install -dv "$libdir" install -d "$prefix/bin/" install -d "$prefix/share/applications/" - for eta in $(ls ./eve-transl${qtver}-??.tar.gz) ;do + for eta in ./eve-transl${qtver}-??.tar.gz ;do install -m 0644 "$eta" "$libdir" done install -m 0644 "./evesetup.shlib" "$libdir" @@ -31,6 +31,12 @@ bootstrap_install() { for icons in $(find . -type f -name '*.png') ;do install -D -m 0644 "$icons" "$prefix/share/${icons#*/}" done + if [ -x $(which gtk-update-icon-cache) ] ;then + if [ -f "${prefix}/share/icons/hicolor/icon-theme.cache" ] ;then + gtk-update-icon-cache -t -f "${prefix}/share/icons/hicolor" 2>/dev/null + chmod 0644 "${prefix}/share/icons/hicolor/icon-theme.cache" + fi + fi } bootstrap_remove() { @@ -146,7 +152,12 @@ else build_lib && \ printf "\nInstalling...\n\n" bootstrap_install && \ - printf "\nYou can now start EVE Online Launcher and his " && \ - echo "Tools from your Application menu." + printf "\nYou can now start EVE Online Launcher and his Tools:\n\n" + for cmd in *.desktop ;do + oexec=$(grep Exec= $cmd | cut -d= -f2); oexec=${oexec##*/} + [ ! "$oexec" = "evelauncher.sh" ] && \ + printf " $oexec\t- $(grep Comment= $cmd | cut -d= -f2)\n" + done + printf "\n evelauncher.sh\t- EVE Online Launcher\n" fi printf "\nDone.\n\n" |