aboutsummaryrefslogtreecommitdiff
path: root/development/atasm/atasm.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/atasm/atasm.SlackBuild')
-rw-r--r--development/atasm/atasm.SlackBuild19
1 files changed, 14 insertions, 5 deletions
diff --git a/development/atasm/atasm.SlackBuild b/development/atasm/atasm.SlackBuild
index 9a2a339e00103..e12c697b53618 100644
--- a/development/atasm/atasm.SlackBuild
+++ b/development/atasm/atasm.SlackBuild
@@ -6,10 +6,16 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20221230 bkw:
+# - update for v1.09.
+# - install binary with standard permissions (0755).
+# - mention atari.txt in man page.
+# - run test suite (add "test" to make targets).
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=atasm
-VERSION=${VERSION:-1.07d}
+VERSION=${VERSION:-1.09}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -65,18 +71,21 @@ DOCDIR=/usr/doc/$PRGNAM-$VERSION
# fix reference to full documentation.
sed -i \
- -e "s,$PRGNAM\.txt,$PRGNAM.pdf," \
+ -e "s,$PRGNAM\.txt,& (or $PRGNAM.pdf in the same directory)," \
-e "s,%%DOCDIR%%,$DOCDIR," \
src/$PRGNAM.1.in
-sed -i "s,-O3.*,$SLKCFLAGS," src/Makefile
+sed -i \
+ -e "s,-O3.*,$SLKCFLAGS," \
+ -e 's,\(chmod \)711,\1755,' \
+ src/Makefile
mkdir -p $PKG/usr/bin $PKG/usr/man/man1 $PKG/usr/doc/$PRGNAM-$VERSION
# 'make install' chokes because this file's missing:
touch $PRGNAM.txt
# N.B. nonstandard use of DESTDIR and MANDIR here.
-make -C src all install \
+make -C src all test install \
DESTDIR=$PKG/usr/bin \
MANDIR=$PKG/usr/man/man1 \
DOCDIR=$PKG/$DOCDIR
@@ -85,7 +94,7 @@ strip $PKG/usr/bin/$PRGNAM
gzip $PKG/usr/man/man1/$PRGNAM.1
rm -f $PKG/$DOCDIR/$PRGNAM.txt
-cp -a LICENSE *.TXT docs/* examples $PKG/$DOCDIR
+cp -a README* LICENSE* *.TXT docs/* examples $PKG/$DOCDIR
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install