wok-current annotate p4wn/receipt @ rev 25084

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