wok annotate hp15c/receipt @ rev 24412
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Feb 09 21:05:34 2022 +0000 (2022-02-09) |
parents | 5386dbd4c0b4 |
children | d8c511e24c20 |
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@16727 | 17 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@16727 | 18 genpkg_rules() |
pascal@16727 | 19 { |
pascal@16727 | 20 mkdir -p $fs/usr/share/hp15c $fs/usr/share/applications \ |
pascal@16727 | 21 $fs/usr/share/fonts/truetype/ttf-dejavu |
pascal@16727 | 22 cp -a $src/* $fs/usr/share/hp15c |
pascal@20300 | 23 sed -i 's|firefox|tazweb midori &|' \ |
pascal@20300 | 24 $fs/usr/share/hp15c/HP-15C.tcl \ |
pascal@20300 | 25 $fs/usr/share/hp15c/doc/preferences.htm |
pascal@20300 | 26 sed -i 's|url_open \$helpfile|url_open file:///$helpfile|' \ |
pascal@20300 | 27 $fs/usr/share/hp15c/HP-15C.tcl |
pascal@16727 | 28 mv $fs/usr/share/hp15c/HP-15C_Simulator_Font.ttf \ |
pascal@16727 | 29 $fs/usr/share/fonts/truetype/ttf-dejavu |
pascal@16727 | 30 cat > $fs/usr/share/hp15c/HP-15C.sh <<EOT |
pascal@16727 | 31 #!/bin/sh |
pascal@16727 | 32 |
pascal@16727 | 33 cd /usr/share/hp15c |
pascal@16727 | 34 tclsh HP-15C.tcl |
pascal@16727 | 35 EOT |
pascal@16727 | 36 chmod +x $fs/usr/share/hp15c/HP-15C.sh |
pascal@16727 | 37 cat > $fs/usr/share/applications/hp15c.desktop <<EOT |
pascal@16727 | 38 [Desktop Entry] |
pascal@16727 | 39 Encoding=UTF-8 |
pascal@16740 | 40 Name=HP-15C Calculator |
pascal@16740 | 41 Name[fr]=Calculatrice HP-15C |
pascal@16740 | 42 Name[pt]=Calculadora HP-15C |
pascal@16727 | 43 Exec=/usr/share/hp15c/HP-15C.sh |
pascal@16727 | 44 Icon=/usr/share/hp15c/HP-15C.gif |
pascal@16727 | 45 Terminal=false |
pascal@16727 | 46 Type=Application |
pascal@16740 | 47 Categories=Application;Utility; |
pascal@16727 | 48 EOT |
pascal@16727 | 49 } |