wok view get-playonlinux/stuff/get-playonlinux @ rev 13337

Add get-playonlinux
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 04 22:32:59 2012 +0200 (2012-09-04)
parents
children 6020e263cbbc
line source
1 #!/bin/sh -e
3 PACKAGE="playonlinux"
4 TMP_DIR=/tmp/get-$PACKAGE-$$-$RANDOM
5 CUR_DIR=$(pwd)
6 mkdir -p $TMP_DIR && cd $TMP_DIR
7 URL=http://www.playonlinux.com/$(. /etc/locale.conf ; echo ${LANG%_*})/download.html
8 busybox wget -s $URL || URL=http://www.playonlinux.com/en/download.html
9 URL=$(wget -O - $URL | sed '/z2*"/!d;s/.*ref="\([^"]*\).*/\1/')
10 wget -O - $URL | tar xzf -
11 for i in bash wxpython cabextract imagemagick gnupg wine wget ; do
12 [ -d /var/lib/tazpkg/installed/$i/ ] || tazpkg get-install $i
13 done
14 cd playonlinux
15 su -c ./playonlinux tux
16 cd $CUR_DIR
17 rm -rf $TMP_DIR