mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-06 08:26:50 +01:00
development/Fennel: Updated for version 0.5.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
1d868d93e3
commit
9085ab38db
3 changed files with 10 additions and 11 deletions
|
@ -22,7 +22,7 @@
|
|||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
PRGNAM=Fennel
|
||||
VERSION=${VERSION:-0.4.1}
|
||||
VERSION=${VERSION:-0.5.0}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -70,17 +70,17 @@ find -L . \
|
|||
|
||||
make fennel
|
||||
|
||||
LUAVER=${LUAVER:-"5.1 5.2 5.3 jit"}
|
||||
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 == jit ]
|
||||
if [ $i == 5.1 ] || [ $i == 5.2 ] || [ $i == 5.3 ] || [ $i == 5.4 ] || [ $i == jit ]
|
||||
then
|
||||
if [ $i != 5.1 ]; then ver=$i libver=$i include=lua$i; fi
|
||||
if $(lua$ver -v &> /dev/null)
|
||||
then
|
||||
sed -i "1s|lua.*|lua$ver|" fennel
|
||||
if [ "$BINARY" == "yes" ]
|
||||
if [ "$BINARY" == "yes" ] && [ $i != 5.1 ]
|
||||
then
|
||||
if [ $i == jit ]; then libver=jit-5.1 include=luajit-2.0; fi
|
||||
make \
|
||||
|
@ -94,12 +94,11 @@ do
|
|||
fi
|
||||
if [ $i != jit ]
|
||||
then
|
||||
install -D -m 0644 -t $PKG/usr/share/lua/$i fennel.lua fennelfriend.fnl \
|
||||
fennelfriend.lua fennelview.fnl fennelview.lua fennelbinary.fnl
|
||||
install -D -m 0644 -t $PKG/usr/share/lua/$i fennel.lua fennelview.fnl fennelview.lua
|
||||
fi
|
||||
fi
|
||||
else
|
||||
echo -e 'LUAVER must be one or more of "5.1 5.2 5.3 jit" separated with space'
|
||||
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
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="Fennel"
|
||||
VERSION="0.4.1"
|
||||
VERSION="0.5.0"
|
||||
HOMEPAGE="https://fennel-lang.org/"
|
||||
DOWNLOAD="https://github.com/bakpakin/Fennel/archive/0.4.1/Fennel-0.4.1.tar.gz"
|
||||
MD5SUM="278fe8d1a99af2c3a8bd618de4de4993"
|
||||
DOWNLOAD="https://github.com/bakpakin/Fennel/archive/0.5.0/Fennel-0.5.0.tar.gz"
|
||||
MD5SUM="01480cc8f136f792d54d7fd610e0b189"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="lua"
|
||||
|
|
|
@ -17,7 +17,7 @@ To specify which Lua versions:
|
|||
After installation there are one or more fennel executable files for the
|
||||
equivalent versions of Lua.
|
||||
|
||||
To install compiled binary versions (experimental):
|
||||
To install compiled binary versions (experimental, only works with lua5.2 or higher):
|
||||
BINARY=yes
|
||||
|
||||
Optional dependency:
|
||||
|
|
Loading…
Reference in a new issue