wok-next view 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
line source
1 # SliTaz package receipt v2.
3 PACKAGE="p4wn"
4 VERSION="1.0"
5 CATEGORY="games"
6 SHORT_DESC="Chess game in javascript"
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="PublicDomain"
9 WEB_SITE="http://p4wn.sourceforge.net/"
11 TARBALL="sven_vehars_fancy_version.zip"
12 WGET_URL="$WEB_SITE/downloads/$TARBALL"
14 compile_rules() {
15 sed -i '/background-image/d' *.css
16 sed -i 's|title>.*</title|title>Chess</title|' index.html
17 }
19 genpkg_rules() {
20 mkdir -p $fs/var/www/p4wn $fs/usr/share/applications \
21 $fs/usr/share/pixmaps
22 cp $src/* $fs/var/www/p4wn
23 rm -f $fs/var/www/p4wn/README $fs/var/www/p4wn/*background.png
24 chown -R 80.80 $fs/var/www/p4wn
25 cat > $fs/usr/share/applications/p4wn.desktop <<EOT
26 [Desktop Entry]
27 Type=Application
28 Name=p4wn (Chess)
29 Exec=browser file:///var/www/p4wn/index.html
30 Icon=p4wn
31 Terminal=false
32 Categories=Game;
33 Comment=Chess game
34 EOT
35 }