diff options
author | abooksigun <abooksigun09@gmail.com> | 2022-04-09 02:56:39 +0100 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2022-04-09 15:45:57 +0700 |
commit | 20ee062247296d6aae22a3c0ac6bb55045160a68 (patch) | |
tree | 0c1d620319a64287ac565bd1142b489ac092b98e /development/Fennel/Fennel.SlackBuild | |
parent | 8c9a4d4c7b8bd916ebca9ab21b87ae2f1c23333f (diff) |
development/Fennel: Updated for version 1.0.0.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org>
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/Fennel/Fennel.SlackBuild')
-rw-r--r-- | development/Fennel/Fennel.SlackBuild | 40 |
1 files changed, 13 insertions, 27 deletions
diff --git a/development/Fennel/Fennel.SlackBuild b/development/Fennel/Fennel.SlackBuild index 1b561c6d8ff6e..cdba0da44f07e 100644 --- a/development/Fennel/Fennel.SlackBuild +++ b/development/Fennel/Fennel.SlackBuild @@ -1,7 +1,7 @@ #!/bin/bash # Slackware build script for Fennel -# Copyright 2021 abooksigun <abooksigun09@gmail.com> +# Copyright 2022 abooksigun <abooksigun09@gmail.com> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,8 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=Fennel -VERSION=${VERSION:-0.8.1} +SRCNAM=${PRGNAM,} +VERSION=${VERSION:-1.0.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -68,9 +69,9 @@ 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-$VERSION +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz +cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 -o -perm 511 \) \ @@ -78,33 +79,20 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -make fennel fennel.lua - LUAVER=${LUAVER:-"5.1 5.2 5.3 5.4 jit"} -BINARY=${BINARY:-no} for i in $LUAVER do if [ $i != 5.1 ]; then ver=$i; fi - if [ $i == "jit" ]; then libver=jit-5.1 include=luajit-2.0; else libver=$i include=lua$i; fi if $(lua$ver -v &> /dev/null) then - sed -i "1s|lua.*|lua$ver|" fennel - if [ $BINARY == "yes" ] && [ $i != 5.1 ] - then - make \ - STATIC_LUA_LIB=/usr/lib$LIBDIRSUFFIX/liblua$libver.a \ - LUA_INCLUDE_DIR=/usr/include/$include \ - fennel-bin - install -D -m 0755 fennel-bin $PKG/usr/bin/fennel$ver - rm fennel-bin - else - install -D -m 0755 fennel $PKG/usr/bin/fennel$ver - fi + make LUA=lua$ver + install -D -m 0755 $SRCNAM $PKG/usr/bin/$SRCNAM$ver if [ $i != jit ] then - install -D -m 0644 -t $PKG/usr/share/lua/$i fennel.lua fennelview.lua + install -D -m 0644 $SRCNAM.lua $PKG/usr/share/lua/$i/$SRCNAM.lua fi + rm $SRCNAM $SRCNAM.lua fi done @@ -112,13 +100,11 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true mkdir -p $PKG/usr/man/man1 -gzip -9 fennel.1 -cp fennel.1.gz $PKG/usr/man/man1 +gzip -9 $SRCNAM.1 +cp $SRCNAM.1.gz $PKG/usr/man/man1 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -t $PKG/usr/doc/$PRGNAM-$VERSION \ - api.md changelog.md CODE-OF-CONDUCT.md CONTRIBUTING.md LICENSE lua-primer.md \ - rationale.md README.md reference.md release-checklist.md setup.md tutorial.md +cp -a LICENSE *.md $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild |