wok annotate hp15c/receipt @ rev 24647

updated hp15c (4.0.00 -> 4.3.00)
author Hans-G?nter Theisgen
date Thu Mar 10 11:23:00 2022 +0100 (2022-03-10)
parents d8c511e24c20
children
rev   line source
pascal@16727 1 # SliTaz package receipt.
pascal@16727 2
pascal@16727 3 PACKAGE="hp15c"
pascal@16727 4 SOURCE="HP-15C"
Hans-G?nter@24647 5 VERSION="4.3.00"
pascal@16727 6 CATEGORY="office"
pascal@16727 7 SHORT_DESC="HP-15C emulator."
pascal@16727 8 MAINTAINER="pascal.bellard@slitaz.org"
pascal@16727 9 LICENSE="GPL3"
pascal@16727 10 WEB_SITE="http://hp-15c.homepage.t-online.de/content_web.htm"
Hans-G?nter@24647 11
pascal@16727 12 TARBALL="${SOURCE}_${VERSION}_Source.zip"
pascal@20299 13 WGET_URL="http://bit.ly/2FQ82VL"
pascal@16727 14
Hans-G?nter@24647 15 DEPENDS="tcl tk"
Hans-G?nter@24647 16 BUILD_DEPENDS=""
pascal@16727 17
pascal@24491 18 # What is the latest version available today?
pascal@24491 19 current_version()
pascal@24491 20 {
pascal@24491 21 wget -O - http://hp-15c.homepage.t-online.de/download.htm 2>/dev/null | \
pascal@24491 22 sed '/version is/!d;s|.*<strong>||;s|,.*||;q'
pascal@24491 23 }
pascal@24491 24
pascal@16727 25 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@16727 26 genpkg_rules()
pascal@16727 27 {
Hans-G?nter@24647 28 mkdir -p $fs/usr/share/hp15c
Hans-G?nter@24647 29 mkdir -p $fs/usr/share/applications \
Hans-G?nter@24647 30 mkdir -p $fs/usr/share/fonts/truetype/ttf-dejavu
Hans-G?nter@24647 31 cp -a $src/* $fs/usr/share/hp15c
pascal@20300 32 sed -i 's|firefox|tazweb midori &|' \
Hans-G?nter@24647 33 $fs/usr/share/hp15c/HP-15C.tcl \
Hans-G?nter@24647 34 $fs/usr/share/hp15c/doc/preferences.htm
pascal@20300 35 sed -i 's|url_open \$helpfile|url_open file:///$helpfile|' \
Hans-G?nter@24647 36 $fs/usr/share/hp15c/HP-15C.tcl
pascal@16727 37 mv $fs/usr/share/hp15c/HP-15C_Simulator_Font.ttf \
Hans-G?nter@24647 38 $fs/usr/share/fonts/truetype/ttf-dejavu
pascal@16727 39 cat > $fs/usr/share/hp15c/HP-15C.sh <<EOT
pascal@16727 40 #!/bin/sh
pascal@16727 41
pascal@16727 42 cd /usr/share/hp15c
pascal@16727 43 tclsh HP-15C.tcl
pascal@16727 44 EOT
pascal@16727 45 chmod +x $fs/usr/share/hp15c/HP-15C.sh
pascal@16727 46 cat > $fs/usr/share/applications/hp15c.desktop <<EOT
pascal@16727 47 [Desktop Entry]
pascal@16727 48 Encoding=UTF-8
pascal@16740 49 Name=HP-15C Calculator
Hans-G?nter@24647 50 Name[de]=Taschenrechner HP-15C
pascal@16740 51 Name[fr]=Calculatrice HP-15C
pascal@16740 52 Name[pt]=Calculadora HP-15C
pascal@16727 53 Exec=/usr/share/hp15c/HP-15C.sh
pascal@16727 54 Icon=/usr/share/hp15c/HP-15C.gif
pascal@16727 55 Terminal=false
pascal@16727 56 Type=Application
pascal@16740 57 Categories=Application;Utility;
pascal@16727 58 EOT
pascal@16727 59 }