It's my first pol-script, but it seems to get Kindle going, although it's a bit of an outdated version of Amazons Software.
Wine version: 1.2
Distribution: Ubuntu
Distribution version: 10.10 (Maverick)
Graphics card: ATI, Radeon 4800
Graphics card driver: fglrx
Comments: Everything works great
Code:
#!/bin/bash
["$PLAYONLINUX" = "" ] && exit
source "$PLAYONLINUX/lib/sources"
TYTUL="Amazon Kindle For PC 4"
PREFIX="Kindle"
WORKINGWINEVERSION="1.2.1"
POL_SetupWindow_Init
POL_SetupWindow_presentation "Amazon Kindle For PC 4" "PlayOnLinux" "http://www.playonmac.com" "DirkBo" "$PREFIX"
select_prefix "$REPERTOIRE/wineprefix/$PREFIX/"
POL_SetupWindow_prefixcreate
cd "$REPERTOIRE/ressources/"
if [ ! -e "KindleForPC-installer.exe" ]; then
#POL_SetupWindow_download "PlayOnLinux is downloading $TYTUL..." "$TYTUL" "http://kindleforpc.amazon.com/31629/KindleForPC-installer.exe"
POL_SetupWindow_download "PlayOnLinux is downloading $TYTUL..." "$TYTUL" "http://okomestudio.net/biboroku/wp-content/uploads/2010/06/KindleForPC-installer.exe.bz2"
bunzip2 KindleForPC-installer.exe.bz2
fi
#POL_Call POL_Install_gecko
wget http://www.kegel.com/wine/winetricks-alpha
chmod +x winetricks-alpha
sh winetricks-alpha corefonts
#installing Google SketchUp
POL_SetupWindow_wait_next_signal "PlayOnLinux is installing $TYTUL" "$TYTUL"
wine "KindleForPC-installer.exe" /silent
POL_SetupWindow_detect_exit
#creating shortcut for Google SketchUp
#POL_SetupWindow_auto_shortcut "$PREFIX" "KindleForPC.exe" "$TYTUL"
#Set_WineVersion_Assign "$WORKINGWINEVERSION" "$TYTUL"
#POL_SetupWindow_make_icon_for_shortcut "$TYTUL" "*_sketchupicon.0.png"
POL_SetupWindow_message "$TYTUL has been installed successfully" "$TYTUL"
POL_SetupWindow_Close
POL_SetupWindow_Close
exit