summaryrefslogtreecommitdiffstats
path: root/development/mads/mads.SlackBuild
diff options
context:
space:
mode:
author B. Watson <yalhcru@gmail.com>2021-09-05 14:01:28 -0400
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2021-10-13 00:51:59 +0700
commite78263ab91f10b8a3b53abe043b4a12d3b0f0a98 (patch)
treee72e657990427ee8ae94d50414fe54ffbda00b22 /development/mads/mads.SlackBuild
parent9932163e56079de7435d787ba0eea8878bfdd78b (diff)
downloadslackbuilds-e78263ab91f10b8a3b53abe043b4a12d3b0f0a98.tar.gz
slackbuilds-e78263ab91f10b8a3b53abe043b4a12d3b0f0a98.tar.xz
development/mads: Updated for version 2.1.3.
Signed-off-by: B. Watson <yalhcru@gmail.com> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/mads/mads.SlackBuild')
-rw-r--r--development/mads/mads.SlackBuild22
1 files changed, 12 insertions, 10 deletions
diff --git a/development/mads/mads.SlackBuild b/development/mads/mads.SlackBuild
index 58c06b4726..aeedc18a5d 100644
--- a/development/mads/mads.SlackBuild
+++ b/development/mads/mads.SlackBuild
@@ -6,10 +6,12 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
+# 20210903 bkw: update for v2.1.3.
+
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=mads
-VERSION=${VERSION:-2.1.0}
+VERSION=${VERSION:-2.1.3}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@@ -22,9 +24,6 @@ if [ -z "$ARCH" ]; then
esac
fi
-# If the variable PRINT_PACKAGE_NAME is set, then this script will report what
-# the name of the created package would be, and then exit. This information
-# could be useful to other scripts.
if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
exit 0
@@ -36,16 +35,19 @@ OUTPUT=${OUTPUT:-/tmp}
set -e
+SRCNAM=Mad-Assembler
+
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
-mkdir -p $PRGNAM-$VERSION
-cd $PRGNAM-$VERSION
-7za x $CWD/${PRGNAM}_${VERSION//./}.7z
+rm -rf $SRCNAM-$VERSION
+tar xvf $CWD/$SRCNAM-$VERSION.tar.?z
+cd $SRCNAM-$VERSION
+
+# upstream's permissions are still horrid, even after all this time...
+find . -iname \*.exe -print0 | xargs -0 rm -f
find . -type f -print0 | xargs -0 chmod 644
find . -type d -print0 | xargs -0 chmod 755
-find . -iname \*.exe -print0 | xargs -0 rm -f
chown -R root:root .
# Build & install the binary.
@@ -64,7 +66,7 @@ cp -a syntax/vim-mads-master/LICENSE \
PKGDOC=$PKG/usr/doc/$PRGNAM-$VERSION
mkdir -p $PKGDOC
-for i in examples readme doc; do
+for i in examples readme doc CHANGELOG README.md; do
[ -e "$i" ] && cp -a "$i" $PKGDOC
done
cat $CWD/README > $PKGDOC/README