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