Magic number : 130
#!/bin/bash
# Date : 2009-05-24 16-37
# Last revision : 2009-12-02
# Wine version used : 1.0.1
# Distribution used to test : Debian Sid
# Author : BBK
# Depend : unzip
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
TITLE="Civnet"
PREFIX="Civnet"
if [ "$POL_LANG" == "fr" ]; then
LNG_ZIP_DL="Téléchargement du jeu..."
LNG_INSTALL_WARNING="Il est préférable de cliquer sur 'Skip' lors de la création d'icônes"
LNG_INSTALL="Installation en cours..."
LNG_INSTALL_DONE="L'installation est terminée."
else
LNG_ZIP_DL="Downloading the game..."
LNG_INSTALL_WARNING="It is advised to choose 'Skip' during the icons creation"
LNG_INSTALL="Installation in progress..."
LNG_INSTALL_DONE="The installation is finished."
fi
POL_SetupWindow_Init
POL_SetupWindow_presentation "$TITLE" "Microprose" "" "BBK" "$PREFIX"
select_prefixe "$REPERTOIRE/wineprefix/$PREFIX"
POL_SetupWindow_prefixcreate
cd $REPERTOIRE/tmp
POL_SetupWindow_download "$LNG_ZIP_DL" "$TITLE" "http://www.abandonware-utopia.com/pages/telechargement/jeux/Civnet.zip"
unzip Civnet.zip -x *.txt
cd CivNet
POL_SetupWindow_message "$LNG_INSTALL_WARNING" "$TITLE"
POL_SetupWindow_wait_next_signal "$LNG_INSTALL" "$TITLE"
wine INSTALL.EXE
POL_SetupWindow_detect_exit
cd $REPERTOIRE/tmp
rm Civnet.zip
rm -r CivNet
POL_SetupWindow_make_shortcut "$PREFIX" "MPS/CIVNET" "CIVNET.EXE" "" "$TITLE"
POL_SetupWindow_message "$LNG_INSTALL_DONE" "$TITLE"
POL_SetupWindow_Close
exit