# HG changeset patch # User Pascal Bellard # Date 1634568435 0 # Node ID 787a1807d2bba575401cab3ef4b29160b581ea7b # Parent e613c69d3e3675900e6d756397f2e78fdeb10c5f Add tnylpo diff -r e613c69d3e36 -r 787a1807d2bb p2c/receipt --- a/p2c/receipt Sat Oct 16 18:25:56 2021 +0000 +++ b/p2c/receipt Mon Oct 18 14:47:15 2021 +0000 @@ -13,6 +13,12 @@ DEPENDS="perl" +current_version() +{ + wget -O - $WEB_SITE 2>/dev/null | \ + sed "/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q" +} + # Rules to configure and make the package. compile_rules() { @@ -35,7 +41,6 @@ cp sys.p2crc loc.p2crc system.imp system.m2 turbo.imp string.pas \ $DESTDIR/usr/lib/p2c mv $DESTDIR/usr/lib/p2c/sys.p2crc $DESTDIR/usr/lib/p2c/p2crc - } # Rules to gen a SliTaz package suitable for Tazpkg. @@ -43,4 +48,3 @@ { cp -a $install/* $fs } - diff -r e613c69d3e36 -r 787a1807d2bb qb2c/receipt --- a/qb2c/receipt Sat Oct 16 18:25:56 2021 +0000 +++ b/qb2c/receipt Mon Oct 18 14:47:15 2021 +0000 @@ -11,6 +11,12 @@ WGET_URL="${WEB_SITE%/}" TAGS="basic C" +current_version() +{ + wget -O - $(dirname $WGET_URL) 2>/dev/null | \ + sed '/qb2c/!d;s|.*qb2c-||;s|.tgz.*||' +} + # Rules to configure and make the package. compile_rules() { diff -r e613c69d3e36 -r 787a1807d2bb sokojs/stuff/multiset.sh --- a/sokojs/stuff/multiset.sh Sat Oct 16 18:25:56 2021 +0000 +++ b/sokojs/stuff/multiset.sh Mon Oct 18 14:47:15 2021 +0000 @@ -1,29 +1,9 @@ #!/bin/sh -grep -q 'text/html' level.htm || patch -p0 < - - -+ - EOT + rm -f $set/tmp* level=$(($level+1)) continue ;; esac @@ -82,20 +108,7 @@ Description) echo "$line" >> "$set/description.txt" ;; Level) - [ "$prev" ] && printf "\"$fmt\",$comment\n" "$prev" >> "$set/level$level.htm" || - echo "// $id ${maxwidth}x$maxheight+$((($col-$width)/2))+$height" >> "$set/level$level.htm" - while [ $height -gt 0 ]; do - printf "\"$fmt\",\n" "" >> "$set/level$level.htm" - height=$(($height-1)) - l=$(($l+1)) - done - prev="$(echo "$line" | sed 's|.*||;s|||;:a;s|\([#.+@$\*]_*\) |\1_|;ta')" - comment="" - if echo "$prev" | grep -Eq '@|\+'; then - x=$(($(echo "$prev" | sed 's|[@+].*||' | wc -c)+($l*$col)+($col-$width)/2-1)) - comment=" // $(printf "\"$fmt\"," "$prev") $x" - prev="$(echo "$prev" | sed 's|\+|.|;s|@|_|')" - fi + printf "$fmt\n" "$(echo "$line" | sed 's|.*||;s|||;:a;s|\([#.+@$\*]_*\) |\1_|;ta')" >> "$set/tmp0" l=$(($l+1)) esac done < "$file" diff -r e613c69d3e36 -r 787a1807d2bb tnylpo/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tnylpo/description.txt Mon Oct 18 14:47:15 2021 +0000 @@ -0,0 +1,5 @@ +tnylpo allows the execution of programs written for CP/M-80 version 2.2 under +Unixy operating systems. It has been tested under Linux, and Mac OS X, but +should need little to no modifications to run under any other reasonably +recent system. The companion program tnylpo-convert converts text files to +and from the CP/M format. diff -r e613c69d3e36 -r 787a1807d2bb tnylpo/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tnylpo/receipt Mon Oct 18 14:47:15 2021 +0000 @@ -0,0 +1,35 @@ +# SliTaz package receipt. + +PACKAGE="tnylpo" +VERSION="1.1.4" +CATEGORY="misc" +SHORT_DESC="Run CP/M-80 programs under Unix/Linux." +MAINTAINER="pascal.bellard@slitaz.org" +LICENSE="BSD" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="https://gitlab.com/gbrein/tnylpo" +WGET_URL="$WEB_SITE/-/archive/$VERSION/$TARBALL" + +DEPENDS="ncursesw" +BUILD_DEPENDS="ncursesw-dev" + +current_version() +{ + wget -O - ${WGET_URL%/arch*}/tags 2>/dev/null | \ + sed '/tar.gz/!d;s|.*/tnylpo-\(.*\).tar.gz".*|\1|;q' +} + +# Rules to configure and make the package. +compile_rules() +{ + make +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin $install/usr/share/man + cp -a $src/tnylpo $fs/usr/bin + cp -a $src/tnylpo-convert $fs/usr/bin + cp -a $src/tnylpo*.1 $install/usr/share/man +}