diff options
author | Jernuh Zakalwe | 2020-08-02 20:18:07 +0200 |
---|---|---|
committer | Jernuh Zakalwe | 2020-08-02 20:18:07 +0200 |
commit | cc288c84bcb87508c5d370f5ffde29297579962c (patch) | |
tree | 9c56dfe476adc2d4d5dacd3880e46e05e346903e /setup.sh.in | |
parent | 3841d6d7347b7f2beae2b0e656bbaea5e0887d6c (diff) | |
download | aur-cc288c84bcb87508c5d370f5ffde29297579962c.tar.gz |
Library libxcb-xinerama as dependency in both setup scripts of the installer added.
Minor changes in both setup scripts.
Typo in evesetup.shlib fixed.
Diffstat (limited to 'setup.sh.in')
-rw-r--r-- | setup.sh.in | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/setup.sh.in b/setup.sh.in index 8b7443cc3610..c5d341957c9f 100644 --- a/setup.sh.in +++ b/setup.sh.in @@ -134,23 +134,22 @@ get_dxvk() { } check_req() { - if [ -x "$(which 7z 2>/dev/null)" ] ;then - printf "\n$(7z | head -n2 | cut -d: -f1 | tr -d [:cntrl:])found." - else - printf "\nError: 7z not found. 7z are needed by evebackup." + if [ ! -r "$(find /usr/lib -type f -name 'libxcb-xinerama*' 2>/dev/null)" ] ;then + printf "\nWarning: libxcb-xinerama needed by evelauncher not found." + printf "\n\tPlease install libxcb-xinerama with your Package Manager.\n" + key="nf" + fi + if [ ! -x "$(which 7z 2>/dev/null)" ] ;then + printf "\nError: 7z needed by evebackup not found." printf "\n\tPlease install p7zip or p7zip-full with your Package Manager.\n" key="nf" fi - if [ -x "$(which curl 2>/dev/null)" ] ;then - printf "\nCurl version $(curl -V | head -n1 | cut -d' ' -f2) found." - else - printf "\n\nError: Curl not found. Curl are needed for downloading evelauncher binaries." + if [ ! -x "$(which curl 2>/dev/null)" ] ;then + printf "\n\nError: Curl needed for downloading evelauncher binaries not found." printf "\n\tPlease install curl with your Package Manager.\n" key="nf" fi - if [ -x "$(which wine 2>/dev/null)" ] ;then - printf "\nWine version $(wine --version) found." - else + if [ ! -x "$(which wine 2>/dev/null)" ] ;then printf "\n\nError: Wine not found." printf "\n\tPlease install wine with your Package Manager." printf "\n\tWineHQ or Developer Version are recommended.\n" @@ -189,7 +188,7 @@ else printf "\n" read -p 'Install EVE Online Launcher Setup? (Y/n) ' key if [ "x$(echo $key | tr [:upper:] [:lower:])" != "xn" ] ;then - printf "\nInstalling...\n\n" + printf "\nInstalling...\n" check_req build_lib get_dxvk |