wok-stable diff p4wn/receipt @ rev 7045

Add nanochess & p4wn
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Nov 01 10:52:35 2010 +0100 (2010-11-01)
parents
children 717afcb65646
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/p4wn/receipt	Mon Nov 01 10:52:35 2010 +0100
     1.3 @@ -0,0 +1,41 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="p4wn"
     1.7 +VERSION="1.0"
     1.8 +CATEGORY="games"
     1.9 +SHORT_DESC="Chess game in javascript"
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +WEB_SITE="http://p4wn.sourceforge.net/"
    1.12 +TARBALL="sven_vehars_fancy_version.zip"
    1.13 +
    1.14 +# Rules to configure and make the package.
    1.15 +compile_rules()
    1.16 +{
    1.17 +	mkdir $src
    1.18 +	cd $src
    1.19 +	[ -s $SOURCES_REPOSITORY/$TARBALL ] ||
    1.20 +	wget $WEB_SITE/downloads/$TARBALL -P $SOURCES_REPOSITORY
    1.21 +	[ -s index.html ] || unzip $SOURCES_REPOSITORY/$TARBALL
    1.22 +	sed -i '/background-image/d' *.css
    1.23 +	sed -i 's|title>.*</title|title>Chess</title|' index.html
    1.24 +}
    1.25 +
    1.26 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.27 +genpkg_rules()
    1.28 +{
    1.29 +        mkdir -p $fs/var/www/chess $fs/usr/share/applications
    1.30 +	cp $src/* $fs/var/www/chess
    1.31 +	rm -f $fs/var/www/chess/README $fs/var/www/chess/*background.png
    1.32 +	chown -R 80.80 $fs/var/www/chess
    1.33 +	cat > $fs/usr/share/applications/chess.desktop <<EOT
    1.34 +[Desktop Entry]
    1.35 +Type=Application
    1.36 +Name=Chess
    1.37 +Exec=browser file:///var/www/chess/index.html
    1.38 +Icon=/var/www/chess/2.gif
    1.39 +Terminal=false
    1.40 +Categories=Game;
    1.41 +Comment=Chess game
    1.42 +EOT
    1.43 +}
    1.44 +