diff options
Diffstat (limited to 'development')
-rw-r--r-- | development/mads/example_shell_scripts.sh | 94 | ||||
-rw-r--r-- | development/mads/mads.SlackBuild | 21 | ||||
-rw-r--r-- | development/mads/mads.info | 6 |
3 files changed, 116 insertions, 5 deletions
diff --git a/development/mads/example_shell_scripts.sh b/development/mads/example_shell_scripts.sh new file mode 100644 index 0000000000000..6a5c5c5af6c2c --- /dev/null +++ b/development/mads/example_shell_scripts.sh @@ -0,0 +1,94 @@ +diff -Naur Mad-Assembler-2.1.6/examples/compression/deflate/pc/zoplfi.sh Mad-Assembler-2.1.6.patched/examples/compression/deflate/pc/zoplfi.sh +--- Mad-Assembler-2.1.6/examples/compression/deflate/pc/zoplfi.sh 1969-12-31 19:00:00.000000000 -0500 ++++ Mad-Assembler-2.1.6.patched/examples/compression/deflate/pc/zoplfi.sh 2024-11-02 02:48:27.941314366 -0400 +@@ -0,0 +1,3 @@ ++#!/bin/sh ++ ++zopfli --deflate INPUT_FILE +diff -Naur Mad-Assembler-2.1.6/examples/compression/doynamite/pc/lz.sh Mad-Assembler-2.1.6.patched/examples/compression/doynamite/pc/lz.sh +--- Mad-Assembler-2.1.6/examples/compression/doynamite/pc/lz.sh 1969-12-31 19:00:00.000000000 -0500 ++++ Mad-Assembler-2.1.6.patched/examples/compression/doynamite/pc/lz.sh 2024-11-02 02:48:27.942314366 -0400 +@@ -0,0 +1,5 @@ ++#!/bin/sh ++ ++lz -o filename.out --raw --binfile filename.in ++ ++# lz.exe -o %~dp1%~n1.lz --raw --binfile %1 +diff -Naur Mad-Assembler-2.1.6/examples/compression/exomizer/pc/exomizer.sh Mad-Assembler-2.1.6.patched/examples/compression/exomizer/pc/exomizer.sh +--- Mad-Assembler-2.1.6/examples/compression/exomizer/pc/exomizer.sh 1969-12-31 19:00:00.000000000 -0500 ++++ Mad-Assembler-2.1.6.patched/examples/compression/exomizer/pc/exomizer.sh 2024-11-02 02:48:27.941314366 -0400 +@@ -0,0 +1,7 @@ ++#!/bin/sh ++ ++# https://bitbucket.org/magli143/exomizer/wiki/Home ++ ++# exomizer sfx sys -t 168 -Di_ram_enter=0xff -Di_ram_exit=0xff -Di_table_addr=0xbc40 -c -n %1.obx -o %1.xex ++ ++exomizer mem -l none -c filename.mic -o filename.pck +diff -Naur Mad-Assembler-2.1.6/examples/compression/lz4/@make.sh Mad-Assembler-2.1.6.patched/examples/compression/lz4/@make.sh +--- Mad-Assembler-2.1.6/examples/compression/lz4/@make.sh 1969-12-31 19:00:00.000000000 -0500 ++++ Mad-Assembler-2.1.6.patched/examples/compression/lz4/@make.sh 2024-11-02 02:48:27.941314366 -0400 +@@ -0,0 +1,4 @@ ++#!/bin/sh ++ ++lz4 koronis.mic koronis.lz4 ++mads unlz4.asm +diff -Naur Mad-Assembler-2.1.6/examples/compression/pucrunch/pc/pucrunch.sh Mad-Assembler-2.1.6.patched/examples/compression/pucrunch/pc/pucrunch.sh +--- Mad-Assembler-2.1.6/examples/compression/pucrunch/pc/pucrunch.sh 1969-12-31 19:00:00.000000000 -0500 ++++ Mad-Assembler-2.1.6.patched/examples/compression/pucrunch/pc/pucrunch.sh 2024-11-02 02:48:27.942314366 -0400 +@@ -0,0 +1,3 @@ ++#!/bin/sh ++ ++pucrunch -c0 -d -l0x4000 -fshort filename.dat filename.pck +diff -Naur Mad-Assembler-2.1.6/examples/compression/subsizer/pc/subsizer.sh Mad-Assembler-2.1.6.patched/examples/compression/subsizer/pc/subsizer.sh +--- Mad-Assembler-2.1.6/examples/compression/subsizer/pc/subsizer.sh 1969-12-31 19:00:00.000000000 -0500 ++++ Mad-Assembler-2.1.6.patched/examples/compression/subsizer/pc/subsizer.sh 2024-11-02 02:48:27.942314366 -0400 +@@ -0,0 +1,4 @@ ++#!/bin/sh ++ ++subsizer -m -o filename.out filename.in ++subsizer -r -o filename.out filename.in +diff -Naur "Mad-Assembler-2.1.6/examples/graphics/lepix v0.2.0/!go.sh" "Mad-Assembler-2.1.6.patched/examples/graphics/lepix v0.2.0/!go.sh" +--- "Mad-Assembler-2.1.6/examples/graphics/lepix v0.2.0/!go.sh" 1969-12-31 19:00:00.000000000 -0500 ++++ "Mad-Assembler-2.1.6.patched/examples/graphics/lepix v0.2.0/!go.sh" 2024-11-02 02:48:27.941314366 -0400 +@@ -0,0 +1,3 @@ ++#!/bin/sh ++ ++mads lepix.asx -o:lepixtip.xex +diff -Naur Mad-Assembler-2.1.6/examples/sprites/chars/!engine.sh Mad-Assembler-2.1.6.patched/examples/sprites/chars/!engine.sh +--- Mad-Assembler-2.1.6/examples/sprites/chars/!engine.sh 1969-12-31 19:00:00.000000000 -0500 ++++ Mad-Assembler-2.1.6.patched/examples/sprites/chars/!engine.sh 2024-11-02 02:48:27.942314366 -0400 +@@ -0,0 +1,8 @@ ++#!/bin/sh ++ ++mads init/init.asm -d:charsBAK=56 -i:global -i:init ++ ++mads bcalc.asm -d:bufor=2 -o:b2calc.obx -i:global ++mads bcalc.asm -d:bufor=3 -o:b3calc.obx -i:global ++ ++mads engine.asm -i:global +diff -Naur Mad-Assembler-2.1.6/examples/sprites/chars/shape/!go.sh Mad-Assembler-2.1.6.patched/examples/sprites/chars/shape/!go.sh +--- Mad-Assembler-2.1.6/examples/sprites/chars/shape/!go.sh 1969-12-31 19:00:00.000000000 -0500 ++++ Mad-Assembler-2.1.6.patched/examples/sprites/chars/shape/!go.sh 2024-11-02 02:48:27.942314366 -0400 +@@ -0,0 +1,5 @@ ++#!/bin/sh ++ ++mads -d:x=0 -d:type=3 -d:frames=10 shape.asm -o:shape1.dat -i:../global ++mads -d:x=4 -d:type=3 -d:frames=8 shape.asm -o:shape2.dat -i:../global ++mads -d:x=8 -d:type=2 -d:frames=13 shape.asm -o:shape3.dat -i:../global +diff -Naur Mad-Assembler-2.1.6/examples/time-date/@mads.sh Mad-Assembler-2.1.6.patched/examples/time-date/@mads.sh +--- Mad-Assembler-2.1.6/examples/time-date/@mads.sh 1969-12-31 19:00:00.000000000 -0500 ++++ Mad-Assembler-2.1.6.patched/examples/time-date/@mads.sh 2024-11-02 02:48:27.942314366 -0400 +@@ -0,0 +1,12 @@ ++#!/bin/sh ++ ++YYYY="$( date +%Y )" ++MM="$( date +%m )" ++DD="$( date +%d )" ++ ++HH24="$( date +%H )" ++MI="$( date +%M )" ++SS="$( date +%S )" ++FF="00" # 20241102 bkw: no fractions of a sec for the *nix date command. ++ ++mads time.asm -pl -d:year=%YYYY% -d:month=%MM% -d:day=%DD% -d:hour=%HH24% -d:minute=%MI% -d:second=%SS% diff --git a/development/mads/mads.SlackBuild b/development/mads/mads.SlackBuild index 4f4b15e06a3ad..39a34700f3c41 100644 --- a/development/mads/mads.SlackBuild +++ b/development/mads/mads.SlackBuild @@ -6,13 +6,18 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20241101 bkw: +# - update for v2.1.6. +# - fix dir case for examples. +# - port batch files in examples to shell scripts. +# - don't include windows or mac executables in examples. # 20230103 bkw: update for v2.1.5. # 20210903 bkw: update for v2.1.3. cd $(dirname $0) ; CWD=$(pwd) PRGNAM=mads -VERSION=${VERSION:-2.1.5} +VERSION=${VERSION:-2.1.6} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -42,7 +47,9 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $SRCNAM-$VERSION -tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz \ + --exclude '*.exe' \ + --exclude 'bin/*' cd $SRCNAM-$VERSION # upstream's permissions are still horrid, even after all this time... @@ -51,6 +58,10 @@ find . -type f -print0 | xargs -0 chmod 644 find . -type d -print0 | xargs -0 chmod 755 chown -R root:root . +# 20241102 bkw: patch doesn't change anything that exists, it adds +# shell script ports of all the .bat files in examples/ +patch -p1 < $CWD/example_shell_scripts.sh + # Build & install the binary. fpc -Mdelphi -vh -O3 $PRGNAM.pas mkdir -p $PKG/usr/bin @@ -65,6 +76,12 @@ cp -a syntax/vim-mads-master/ftdetect/ syntax/vim-mads-master/syntax/ \ cp -a syntax/vim-mads-master/LICENSE \ $PKG/usr/share/vim/vimfiles/mads.vim.LICENSE +# 20241101 bkw: example code has e.g. ".link ../libraries/printf.obx", +# these dirs need to be lowercased to build the examples on linux. +for i in libraries macros procedures; do + mv examples/${i^^}/ examples/$i +done + PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKGDOC rmdir examples/compression/lz4/pc # empty dir in 2.1.5 diff --git a/development/mads/mads.info b/development/mads/mads.info index 024eddaa4dfce..54a4f47f10cbf 100644 --- a/development/mads/mads.info +++ b/development/mads/mads.info @@ -1,8 +1,8 @@ PRGNAM="mads" -VERSION="2.1.5" +VERSION="2.1.6" HOMEPAGE="https://mads.atari8.info/" -DOWNLOAD="https://github.com/tebe6502/Mad-Assembler/archive/2.1.5/Mad-Assembler-2.1.5.tar.gz" -MD5SUM="3b2140982609cad3884efada3df0bd13" +DOWNLOAD="https://github.com/tebe6502/Mad-Assembler/archive/2.1.6/Mad-Assembler-2.1.6.tar.gz" +MD5SUM="0b3709f0a8312054a78b876736a4a87a" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="fpc" |