#!/bin/sh

version=0.9.3

params="--prefix=/opt/wine-$version"

echo -n "]2;[Wine $version - Retrieving source...]";
# get the source
#### http://ibiblio.org/pub/linux/system/emulators/wine/wine-$version.tar.bz2
# http://switch.dl.sourceforge.net/sourceforge/wine/wine-$version.tar.bz2
curl -o - http://switch.dl.sourceforge.net/sourceforge/wine/wine-$version.tar.bz2 | tar -jxvf -

cd wine-$version
echo -n "]2;[Wine $version - Runing wineinstall...]";
nice ./tools/wineinstall $params 

