wok-current rev 25084

updated p4wn (1.0 -> 2.01)
author Hans-G?nter Theisgen
date Wed Jun 15 17:34:03 2022 +0100 (2022-06-15)
parents bca2771f44f4
children 38c32fd69682
files p4wn/description.txt p4wn/receipt
line diff
     1.1 --- a/p4wn/description.txt	Wed Jun 15 17:22:15 2022 +0100
     1.2 +++ b/p4wn/description.txt	Wed Jun 15 17:34:03 2022 +0100
     1.3 @@ -1,2 +1,4 @@
     1.4 -A concise javascript chess engine, first written for the 5k web competition. It
     1.5 -plays at the level of a lazy amateur, so is a good match for most opponents.
     1.6 +A concise javascript chess engine, first written for the
     1.7 +5k web competition.
     1.8 +It plays at the level of a lazy amateur, so is a good
     1.9 +match for most opponents.
     2.1 --- a/p4wn/receipt	Wed Jun 15 17:22:15 2022 +0100
     2.2 +++ b/p4wn/receipt	Wed Jun 15 17:34:03 2022 +0100
     2.3 @@ -1,14 +1,15 @@
     2.4  # SliTaz package receipt.
     2.5  
     2.6  PACKAGE="p4wn"
     2.7 -VERSION="1.0"
     2.8 +VERSION="2.01"
     2.9  CATEGORY="games"
    2.10 -SHORT_DESC="Chess game in javascript"
    2.11 +SHORT_DESC="Chess game in javascript."
    2.12  MAINTAINER="pascal.bellard@slitaz.org"
    2.13  LICENSE="PublicDomain"
    2.14 -WEB_SITE="http://p4wn.sourceforge.net/"
    2.15 -TARBALL="sven_vehars_fancy_version.zip"
    2.16 -WGET_URL="$WEB_SITE/downloads/$TARBALL"
    2.17 +WEB_SITE="https://sourceforge.net/projects/p4wn/"
    2.18 +
    2.19 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.20 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    2.21  
    2.22  # What is the latest version available today?
    2.23  current_version()
    2.24 @@ -20,7 +21,7 @@
    2.25  # Rules to configure and make the package.
    2.26  compile_rules()
    2.27  {
    2.28 -	cd $src
    2.29 +	cd	src
    2.30  	sed -i '/background-image/d' *.css
    2.31  	sed -i 's|title>.*</title|title>Chess</title|' index.html
    2.32  }
    2.33 @@ -28,11 +29,14 @@
    2.34  # Rules to gen a SliTaz package suitable for Tazpkg.
    2.35  genpkg_rules()
    2.36  {
    2.37 -        mkdir -p $fs/var/www/p4wn $fs/usr/share/applications \
    2.38 -        	$fs/usr/share/pixmaps
    2.39 -	cp $src/* $fs/var/www/p4wn
    2.40 -	rm -f $fs/var/www/p4wn/README $fs/var/www/p4wn/*background.png
    2.41 -	chown -R 80.80 $fs/var/www/p4wn
    2.42 +        mkdir -p $fs/var/www/p4wn
    2.43 +	mkdir -p $fs/usr/share/applications
    2.44 +	mkdir -p $fs/usr/share/pixmaps
    2.45 +
    2.46 +	cp	$src/src/*	$fs/var/www/p4wn
    2.47 +	rm -f			$fs/var/www/p4wn/README
    2.48 +	rm -f			$fs/var/www/p4wn/*background.png
    2.49 +	chown -R 80.80		$fs/var/www/p4wn
    2.50  	cat > $fs/usr/share/applications/p4wn.desktop <<EOT
    2.51  [Desktop Entry]
    2.52  Type=Application