wok-current annotate p4wn/receipt @ rev 25044
*/stuff/bootloader.S: fix VCPI case
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jun 02 15:48:36 2022 +0000 (2022-06-02) |
parents | 2a5cc8208d36 |
children | 04e644032779 |
rev | line source |
---|---|
pascal@7045 | 1 # SliTaz package receipt. |
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/" |
pascal@7045 | 10 TARBALL="sven_vehars_fancy_version.zip" |
slaxemulator@8439 | 11 WGET_URL="$WEB_SITE/downloads/$TARBALL" |
pascal@24361 | 12 |
pascal@24361 | 13 # What is the latest version available today? |
pascal@24361 | 14 current_version() |
pascal@24361 | 15 { |
pascal@24361 | 16 wget -O - https://sourceforge.net/projects/p4wn/files/ 2>/dev/null | \ |
pascal@24361 | 17 sed '/scope="row/!d;/tar/!d;s|.*/p4wn-||;s|.tar.*||;q' |
pascal@24361 | 18 } |
pascal@24361 | 19 |
pascal@7045 | 20 # Rules to configure and make the package. |
pascal@7045 | 21 compile_rules() |
pascal@7045 | 22 { |
pascal@7045 | 23 cd $src |
pascal@7045 | 24 sed -i '/background-image/d' *.css |
pascal@7045 | 25 sed -i 's|title>.*</title|title>Chess</title|' index.html |
pascal@7045 | 26 } |
pascal@7045 | 27 |
pascal@7045 | 28 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@7045 | 29 genpkg_rules() |
pascal@7045 | 30 { |
samuel_trassare@12029 | 31 mkdir -p $fs/var/www/p4wn $fs/usr/share/applications \ |
samuel_trassare@12029 | 32 $fs/usr/share/pixmaps |
pascal@7144 | 33 cp $src/* $fs/var/www/p4wn |
pascal@7144 | 34 rm -f $fs/var/www/p4wn/README $fs/var/www/p4wn/*background.png |
pascal@7144 | 35 chown -R 80.80 $fs/var/www/p4wn |
pascal@7144 | 36 cat > $fs/usr/share/applications/p4wn.desktop <<EOT |
pascal@7045 | 37 [Desktop Entry] |
pascal@7045 | 38 Type=Application |
pascal@7144 | 39 Name=p4wn (Chess) |
slaxemulator@9600 | 40 Exec=browser file:///var/www/p4wn/index.html |
samuel_trassare@12029 | 41 Icon=p4wn |
pascal@7045 | 42 Terminal=false |
pascal@7045 | 43 Categories=Game; |
pascal@7045 | 44 Comment=Chess game |
pascal@7045 | 45 EOT |
pascal@7045 | 46 } |
pascal@7045 | 47 |