# HG changeset patch # User Pascal Bellard # Date 1346790779 -7200 # Node ID 7bcb31854501c3c55cbd9c8de616c278b5760741 # Parent aa09cd98f1718c863b0ef5175fd8212f5a952037 Add get-playonlinux diff -r aa09cd98f171 -r 7bcb31854501 get-playonlinux/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/get-playonlinux/receipt Tue Sep 04 22:32:59 2012 +0200 @@ -0,0 +1,20 @@ +# SliTaz package receipt. + +PACKAGE="get-playonlinux" +VERSION="1.00" +CATEGORY="games" +SHORT_DESC="Get playonlinux." +MAINTAINER="pascal.bellard@slitaz.org" +WEB_SITE="http://www.playonlinux.com/" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin + cp stuff/get-playonlinux $fs/usr/bin +} + +post_install() +{ + [ -n "$1" ] || get-playonlinux +} diff -r aa09cd98f171 -r 7bcb31854501 get-playonlinux/stuff/get-playonlinux --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/get-playonlinux/stuff/get-playonlinux Tue Sep 04 22:32:59 2012 +0200 @@ -0,0 +1,17 @@ +#!/bin/sh -e + +PACKAGE="playonlinux" +TMP_DIR=/tmp/get-$PACKAGE-$$-$RANDOM +CUR_DIR=$(pwd) +mkdir -p $TMP_DIR && cd $TMP_DIR +URL=http://www.playonlinux.com/$(. /etc/locale.conf ; echo ${LANG%_*})/download.html +busybox wget -s $URL || URL=http://www.playonlinux.com/en/download.html +URL=$(wget -O - $URL | sed '/z2*"/!d;s/.*ref="\([^"]*\).*/\1/') +wget -O - $URL | tar xzf - +for i in bash wxpython cabextract imagemagick gnupg wine wget ; do + [ -d /var/lib/tazpkg/installed/$i/ ] || tazpkg get-install $i +done +cd playonlinux +su -c ./playonlinux tux +cd $CUR_DIR +rm -rf $TMP_DIR