diff options
Diffstat (limited to 'development/mads/mads.SlackBuild')
-rw-r--r-- | development/mads/mads.SlackBuild | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/development/mads/mads.SlackBuild b/development/mads/mads.SlackBuild index 58c06b472646e..aeedc18a5d0d6 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 |