wok-6.x view p4wn/receipt @ rev 25002
updated nrg2iso (0.4 -> 0.4.1)
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 16 14:45:30 2022 +0100 (2022-05-16) |
parents | 2a5cc8208d36 |
children | 04e644032779 |
line source
1 # SliTaz package receipt.
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/"
10 TARBALL="sven_vehars_fancy_version.zip"
11 WGET_URL="$WEB_SITE/downloads/$TARBALL"
13 # What is the latest version available today?
14 current_version()
15 {
16 wget -O - https://sourceforge.net/projects/p4wn/files/ 2>/dev/null | \
17 sed '/scope="row/!d;/tar/!d;s|.*/p4wn-||;s|.tar.*||;q'
18 }
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 sed -i '/background-image/d' *.css
25 sed -i 's|title>.*</title|title>Chess</title|' index.html
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/var/www/p4wn $fs/usr/share/applications \
32 $fs/usr/share/pixmaps
33 cp $src/* $fs/var/www/p4wn
34 rm -f $fs/var/www/p4wn/README $fs/var/www/p4wn/*background.png
35 chown -R 80.80 $fs/var/www/p4wn
36 cat > $fs/usr/share/applications/p4wn.desktop <<EOT
37 [Desktop Entry]
38 Type=Application
39 Name=p4wn (Chess)
40 Exec=browser file:///var/www/p4wn/index.html
41 Icon=p4wn
42 Terminal=false
43 Categories=Game;
44 Comment=Chess game
45 EOT
46 }