wok view hp15c/receipt @ rev 24692

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