wok-current 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 | aa09cd98f171 |
children | 6020e263cbbc |
files | get-playonlinux/receipt get-playonlinux/stuff/get-playonlinux |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/get-playonlinux/receipt Tue Sep 04 22:32:59 2012 +0200 1.3 @@ -0,0 +1,20 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="get-playonlinux" 1.7 +VERSION="1.00" 1.8 +CATEGORY="games" 1.9 +SHORT_DESC="Get playonlinux." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +WEB_SITE="http://www.playonlinux.com/" 1.12 + 1.13 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.14 +genpkg_rules() 1.15 +{ 1.16 + mkdir -p $fs/usr/bin 1.17 + cp stuff/get-playonlinux $fs/usr/bin 1.18 +} 1.19 + 1.20 +post_install() 1.21 +{ 1.22 + [ -n "$1" ] || get-playonlinux 1.23 +}
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/get-playonlinux/stuff/get-playonlinux Tue Sep 04 22:32:59 2012 +0200 2.3 @@ -0,0 +1,17 @@ 2.4 +#!/bin/sh -e 2.5 + 2.6 +PACKAGE="playonlinux" 2.7 +TMP_DIR=/tmp/get-$PACKAGE-$$-$RANDOM 2.8 +CUR_DIR=$(pwd) 2.9 +mkdir -p $TMP_DIR && cd $TMP_DIR 2.10 +URL=http://www.playonlinux.com/$(. /etc/locale.conf ; echo ${LANG%_*})/download.html 2.11 +busybox wget -s $URL || URL=http://www.playonlinux.com/en/download.html 2.12 +URL=$(wget -O - $URL | sed '/z2*"/!d;s/.*ref="\([^"]*\).*/\1/') 2.13 +wget -O - $URL | tar xzf - 2.14 +for i in bash wxpython cabextract imagemagick gnupg wine wget ; do 2.15 + [ -d /var/lib/tazpkg/installed/$i/ ] || tazpkg get-install $i 2.16 +done 2.17 +cd playonlinux 2.18 +su -c ./playonlinux tux 2.19 +cd $CUR_DIR 2.20 +rm -rf $TMP_DIR