wok annotate p4wn/receipt @ rev 13197

Up: fail2ban to 0.8.7.1.
author Christopher Rogers <slaxemulator@gmail.com>
date Sun Aug 05 11:03:51 2012 +0000 (2012-08-05)
parents 2b260f668fef
children 2a5cc8208d36
rev   line source
pascal@7045 1 # SliTaz package receipt.
pascal@7045 2
pascal@7045 3 PACKAGE="p4wn"
pascal@7045 4 VERSION="1.0"
pascal@7045 5 CATEGORY="games"
pascal@7045 6 SHORT_DESC="Chess game in javascript"
pascal@7045 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@7045 8 WEB_SITE="http://p4wn.sourceforge.net/"
pascal@7045 9 TARBALL="sven_vehars_fancy_version.zip"
slaxemulator@8439 10 WGET_URL="$WEB_SITE/downloads/$TARBALL"
pascal@7045 11 # Rules to configure and make the package.
pascal@7045 12 compile_rules()
pascal@7045 13 {
pascal@7045 14 cd $src
pascal@7045 15 sed -i '/background-image/d' *.css
pascal@7045 16 sed -i 's|title>.*</title|title>Chess</title|' index.html
pascal@7045 17 }
pascal@7045 18
pascal@7045 19 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@7045 20 genpkg_rules()
pascal@7045 21 {
samuel_trassare@12029 22 mkdir -p $fs/var/www/p4wn $fs/usr/share/applications \
samuel_trassare@12029 23 $fs/usr/share/pixmaps
pascal@7144 24 cp $src/* $fs/var/www/p4wn
pascal@7144 25 rm -f $fs/var/www/p4wn/README $fs/var/www/p4wn/*background.png
pascal@7144 26 chown -R 80.80 $fs/var/www/p4wn
pascal@7144 27 cat > $fs/usr/share/applications/p4wn.desktop <<EOT
pascal@7045 28 [Desktop Entry]
pascal@7045 29 Type=Application
pascal@7144 30 Name=p4wn (Chess)
slaxemulator@9600 31 Exec=browser file:///var/www/p4wn/index.html
samuel_trassare@12029 32 Icon=p4wn
pascal@7045 33 Terminal=false
pascal@7045 34 Categories=Game;
pascal@7045 35 Comment=Chess game
pascal@7045 36 EOT
pascal@7045 37 }
pascal@7045 38