# SliTaz package receipt. PACKAGE="hp15c" SOURCE="HP-15C" VERSION="4.3.00" CATEGORY="office" SHORT_DESC="HP-15C emulator." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="GPL3" WEB_SITE="http://hp-15c.homepage.t-online.de/content_web.htm" TARBALL="${SOURCE}_${VERSION}_Source.zip" WGET_URL="http://bit.ly/2FQ82VL" DEPENDS="tcl tk" BUILD_DEPENDS="" # What is the latest version available today? current_version() { wget -O - http://hp-15c.homepage.t-online.de/download.htm 2>/dev/null | \ sed '/version is/!d;s|.*||;s|,.*||;q' } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/share/hp15c mkdir -p $fs/usr/share/applications \ mkdir -p $fs/usr/share/fonts/truetype/ttf-dejavu cp -a $src/* $fs/usr/share/hp15c sed -i 's|firefox|tazweb midori &|' \ $fs/usr/share/hp15c/HP-15C.tcl \ $fs/usr/share/hp15c/doc/preferences.htm sed -i 's|url_open \$helpfile|url_open file:///$helpfile|' \ $fs/usr/share/hp15c/HP-15C.tcl mv $fs/usr/share/hp15c/HP-15C_Simulator_Font.ttf \ $fs/usr/share/fonts/truetype/ttf-dejavu cat > $fs/usr/share/hp15c/HP-15C.sh < $fs/usr/share/applications/hp15c.desktop <