An update of the script :
http://www.playonmac.com/repository/?script=373
#!/bin/bash
# Date : (2010-02-27 19-10)
# Last revision : (2011-03-16 19-10)
# Wine version used : 1.1.39
# Distribution used to test : archlinux
# Author : thib25, jpcristian
# Licence : Gnu LGP
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
NAME="7-Zip"
PREFIX="7zip"
URL="http://downloads.sourceforge.net/sevenzip/7z920.exe"
if [ "$POL_LANG" == "fr" ]; then
DOWNLOAD="Téléchargement en cours..."
INSTALLATION="Installation en cours..."
POLEND="$NAME a été installé avec succès"
else
DOWNLOAD="Download in progress..."
INSTALLATION="Installation in progress..."
POLEND="$NAME has been installed succesfully"
fi
wget http://www.7-zip.org/logos/7z_gr01.jpg --output-document="$REPERTOIRE/tmp/leftnotscaled.jpeg"
convert "$REPERTOIRE/tmp/leftnotscaled.jpeg" -scale 150x356\\! "$REPERTOIRE/tmp/left.jpeg"
wget http://www.7-zip.org/logos/7z_rm01.jpg --output-document="$REPERTOIRE/tmp/topnotscaled.jpeg"
convert "$REPERTOIRE/tmp/topnotscaled.jpeg" -scale 60x60\\! "$REPERTOIRE/tmp/top.jpeg"
POL_SetupWindow_Init "$REPERTOIRE/tmp/top.jpeg" "$REPERTOIRE/tmp/left.jpeg"
POL_SetupWindow_presentation "$NAME" "7-zip.org" "http://www.7-zip.org/" "thib25" "$PREFIX"
select_prefix "$REPERTOIRE/wineprefix/$PREFIX"
POL_SetupWindow_prefixcreate
POL_SetupWindow_install_wine "1.1.39"
PROGRAMFILES="Program Files"
POL_LoadVar_PROGRAMFILES
cd "$REPERTOIRE/tmp/"
POL_SetupWindow_download "$DOWNLOAD" "$NAME" "$URL"
POL_SetupWindow_wait_next_signal "$INSTALLATION" "$NAME"
wine "7z920.exe"
POL_SetupWindow_detect_exit
rm -rf 7z920.exe
POL_SetupWindow_make_shortcut "$PREFIX" "$PROGRAMFILES/7-Zip" "7zFM.exe" "" "$NAME"
Set_WineVersion_Assign "1.1.39" "$NAME"
POL_SetupWindow_message "$POLEND" "$NAME"
POL_SetupWindow_Close
exit