aboutsummaryrefslogtreecommitdiff
path: root/development/msbasic2ascii/msbasic2ascii.SlackBuild
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2025-02-23 17:54:48 -0500
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2025-03-01 08:37:37 +0700
commit6359824d0396d863a2f5270aaca542b05ea164b1 (patch)
treee7791769f5321cbb273e41459aa62820e2000d30 /development/msbasic2ascii/msbasic2ascii.SlackBuild
parentc31c5a6c976154888422932fc49432aacb7f1699 (diff)
development/msbasic2ascii: Updated for version 0.2+20250222_db15677.
Signed-off-by: B. Watson <urchlay@slackware.uk> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/msbasic2ascii/msbasic2ascii.SlackBuild')
-rw-r--r--development/msbasic2ascii/msbasic2ascii.SlackBuild44
1 files changed, 29 insertions, 15 deletions
diff --git a/development/msbasic2ascii/msbasic2ascii.SlackBuild b/development/msbasic2ascii/msbasic2ascii.SlackBuild
index 853be6b0db..2c8f1b4830 100644
--- a/development/msbasic2ascii/msbasic2ascii.SlackBuild
+++ b/development/msbasic2ascii/msbasic2ascii.SlackBuild
@@ -6,10 +6,16 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20250223 bkw: update for latest upstream git, 0.2+20250222_db15677.
+# Got an email from upstream, he's moved the code to github and done a
+# bit of work on it recently.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=msbasic2ascii
-VERSION=${VERSION:-0.2}
+VERSION=${VERSION:-0.2+20250222_db15677}
+COMMIT=${COMMIT:-db15677bc904fca004290ac0f7c6a89663a86f3e}
+SRCNAM=detokenizers
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -46,30 +52,38 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
-cd $PRGNAM-$VERSION
+rm -rf $SRCNAM-$COMMIT
+tar xvf $CWD/$SRCNAM-$COMMIT.tar.gz
+cd $SRCNAM-$COMMIT
chown -R root:root .
-find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} \+ -o \
- \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} \+
+find -L . -perm /111 -a \! -perm 755 -a -exec chmod 755 {} + -o \
+ \! -perm /111 -a \! -perm 644 -a -exec chmod 644 {} +
+
+PKGMAN1=$PKG/usr/man/man1
+PKGBIN=$PKG/usr/bin
+mkdir -p $PKGBIN $PKGMAN1
+
+# 20250223 bkw: Fix implicit prototype warnings.
+echo 'extern void gwb_dprintf(char *format, ...);' >> gwbasic.h
-# Fixes for modern compilers. Actually some of this stuff would be broken
-# on 2000-era gcc, even.
-patch -p1 < $CWD/compile_fixes.diff
+# 20250223 bkw: Upstream removed the experimental/untested stuff
+# from the Makefile; put it back. Also fix missing commas in nascom.h.
+patch -p1 < $CWD/restore_untested.diff
+# 20250223 bkw: 'make install' is broken, don't use.
sed -i "/^CFLAGS/s,-g,$SLKCFLAGS," Makefile
make
-mkdir -p $PKG/usr/bin $PKG/usr/man/man1
-make install INSTDIR=$PKG/usr/bin
+install -s \
+ trs80ascii msxascii gwascii cpmascii cocoascii drascii trsm4ascii \
+ $PKGBIN
# 'make install' doesn't build/install these. Include them in case someone
# needs them. They ain't no man pages for 'em, but *shrug*.
make untst
-cp -a osiascii sorcascii nscmascii xtalascii compucolorascii $PKG/usr/bin
+install -s osiascii sorcascii nscmascii xtalascii compucolorascii $PKGBIN
-strip $PKG/usr/bin/*
-cp -a *.1 $PKG/usr/man/man1
-gzip $PKG/usr/man/man1/*.1
+cp -a *.1 $PKGMAN1
+gzip $PKGMAN1/*.1
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKGDOC