wok view p4wn/receipt @ rev 25307
updated siproxd (0.8.2 -> 0.8.3)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 20 10:52:20 2022 +0100 (2022-07-20) |
parents | 370da83187ab |
children | ad0bc3efbf37 |
line source
1 # SliTaz package receipt.
3 PACKAGE="p4wn"
4 VERSION="2.01"
5 CATEGORY="games"
6 SHORT_DESC="Chess game in javascript."
7 MAINTAINER="pascal.bellard@slitaz.org"
8 LICENSE="PublicDomain"
9 WEB_SITE="https://sourceforge.net/projects/p4wn/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - https://sourceforge.net/projects/p4wn/files/ 2>/dev/null | \
18 sed '/scope="row/!d;/tar/!d;s|.*/p4wn-||;s|.tar.*||;q'
19 }
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd src
25 sed -i '/background-image/d' *.css
26 sed -i 's|title>.*</title|title>Chess</title|' index.html
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/var/www/p4wn
33 mkdir -p $fs/usr/share/applications
34 mkdir -p $fs/usr/share/pixmaps
36 cp $src/src/* $fs/var/www/p4wn
37 rm -f $fs/var/www/p4wn/README
38 rm -f $fs/var/www/p4wn/*background.png
39 chown -R 80.80 $fs/var/www/p4wn
40 cat > $fs/usr/share/applications/p4wn.desktop <<EOT
41 [Desktop Entry]
42 Type=Application
43 Name=p4wn (Chess)
44 Exec=browser file:///var/www/p4wn/index.html
45 Icon=p4wn
46 Terminal=false
47 Categories=Game;
48 Comment=Chess game
49 EOT
50 }