wok annotate p4wn/receipt @ rev 22042

gcc83-lib-base: do NOT provide gcc-lib-base
Currently BOTH gcc-lib-base and gcc83-lib-base are installed on my SliTaz system. So, with the current (and longstanding) tazpkg limitations I can't update just gcc-lib-base: tazpkg always updates gcc83-lib-base for me instead. Now I can't run Firefox, Vivaldi, Chrome, etc. I think because of gcc-lib-base, but I not sure 1bsolutely.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Oct 22 12:55:54 2019 +0300 (2019-10-22)
parents ff54c8e52d6b
children 370da83187ab
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@7045 12 # Rules to configure and make the package.
pascal@7045 13 compile_rules()
pascal@7045 14 {
pascal@7045 15 cd $src
pascal@7045 16 sed -i '/background-image/d' *.css
pascal@7045 17 sed -i 's|title>.*</title|title>Chess</title|' index.html
pascal@7045 18 }
pascal@7045 19
pascal@7045 20 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@7045 21 genpkg_rules()
pascal@7045 22 {
samuel_trassare@12029 23 mkdir -p $fs/var/www/p4wn $fs/usr/share/applications \
samuel_trassare@12029 24 $fs/usr/share/pixmaps
pascal@7144 25 cp $src/* $fs/var/www/p4wn
pascal@7144 26 rm -f $fs/var/www/p4wn/README $fs/var/www/p4wn/*background.png
pascal@7144 27 chown -R 80.80 $fs/var/www/p4wn
pascal@7144 28 cat > $fs/usr/share/applications/p4wn.desktop <<EOT
pascal@7045 29 [Desktop Entry]
pascal@7045 30 Type=Application
pascal@7144 31 Name=p4wn (Chess)
slaxemulator@9600 32 Exec=browser file:///var/www/p4wn/index.html
samuel_trassare@12029 33 Icon=p4wn
pascal@7045 34 Terminal=false
pascal@7045 35 Categories=Game;
pascal@7045 36 Comment=Chess game
pascal@7045 37 EOT
pascal@7045 38 }
pascal@7045 39