From 44fc28d1f39bf80a0154a548340aee2b03bd843d Mon Sep 17 00:00:00 2001 From: abooksigun Date: Fri, 22 Jan 2021 19:36:00 +0000 Subject: development/Fennel: Updated for version 0.8.0. Signed-off-by: Dave Woodfall Signed-off-by: Willy Sudiarto Raharjo --- development/Fennel/Fennel.SlackBuild | 47 ++++++++++++++++-------------------- development/Fennel/Fennel.info | 6 ++--- 2 files changed, 24 insertions(+), 29 deletions(-) diff --git a/development/Fennel/Fennel.SlackBuild b/development/Fennel/Fennel.SlackBuild index 00aa25d0c63f..988cbf909f03 100644 --- a/development/Fennel/Fennel.SlackBuild +++ b/development/Fennel/Fennel.SlackBuild @@ -1,7 +1,7 @@ #!/bin/sh # Slackware build script for Fennel -# Copyright 2020 abooksigun +# Copyright 2021 abooksigun # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,7 +22,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=Fennel -VERSION=${VERSION:-0.7.0} +VERSION=${VERSION:-0.8.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -68,38 +68,33 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \ -exec chmod 644 {} \; -make fennel +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 ] || [ $i == 5.2 ] || [ $i == 5.3 ] || [ $i == 5.4 ] || [ $i == jit ] + 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 - if [ $i != 5.1 ]; then ver=$i libver=$i include=lua$i; fi - if $(lua$ver -v &> /dev/null) + 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 + if [ $i != jit ] then - sed -i "1s|lua.*|lua$ver|" fennel - if [ "$BINARY" == "yes" ] && [ $i != 5.1 ] - then - if [ $i == jit ]; then libver=jit-5.1 include=luajit-2.0; fi - 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 - if [ $i != jit ] - then - install -D -m 0644 -t $PKG/usr/share/lua/$i fennel.lua fennelview.fnl fennelview.lua - fi + install -D -m 0644 -t $PKG/usr/share/lua/$i fennel.lua fennelview.lua fi - else - echo -e 'LUAVER must be one or more of "5.1 5.2 5.3 5.4 jit" separated with space' - exit 1 fi done diff --git a/development/Fennel/Fennel.info b/development/Fennel/Fennel.info index 49b0957a7fc6..e8c44a04489e 100644 --- a/development/Fennel/Fennel.info +++ b/development/Fennel/Fennel.info @@ -1,8 +1,8 @@ PRGNAM="Fennel" -VERSION="0.7.0" +VERSION="0.8.0" HOMEPAGE="https://fennel-lang.org/" -DOWNLOAD="https://github.com/bakpakin/Fennel/archive/0.7.0/Fennel-0.7.0.tar.gz" -MD5SUM="1b8586a8b54e83c6ace7c3a0f876f237" +DOWNLOAD="https://github.com/bakpakin/Fennel/archive/0.8.0/Fennel-0.8.0.tar.gz" +MD5SUM="fd9e5ec3eb408d3569491b6d4abfe6d7" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="lua" -- cgit v1.2.3