wok-next annotate p4wn/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 2a5cc8208d36
children
rev   line source
al@21020 1 # SliTaz package receipt v2.
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@15379 8 LICENSE="PublicDomain"
pascal@7045 9 WEB_SITE="http://p4wn.sourceforge.net/"
al@21020 10
pascal@7045 11 TARBALL="sven_vehars_fancy_version.zip"
slaxemulator@8439 12 WGET_URL="$WEB_SITE/downloads/$TARBALL"
al@21020 13
al@21020 14 compile_rules() {
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
al@21020 19 genpkg_rules() {
al@21020 20 mkdir -p $fs/var/www/p4wn $fs/usr/share/applications \
al@21020 21 $fs/usr/share/pixmaps
pascal@7144 22 cp $src/* $fs/var/www/p4wn
pascal@7144 23 rm -f $fs/var/www/p4wn/README $fs/var/www/p4wn/*background.png
pascal@7144 24 chown -R 80.80 $fs/var/www/p4wn
pascal@7144 25 cat > $fs/usr/share/applications/p4wn.desktop <<EOT
pascal@7045 26 [Desktop Entry]
pascal@7045 27 Type=Application
pascal@7144 28 Name=p4wn (Chess)
slaxemulator@9600 29 Exec=browser file:///var/www/p4wn/index.html
samuel_trassare@12029 30 Icon=p4wn
pascal@7045 31 Terminal=false
pascal@7045 32 Categories=Game;
pascal@7045 33 Comment=Chess game
pascal@7045 34 EOT
pascal@7045 35 }