mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-16 19:50:19 +01:00
libraries/lua-posix: Updated for version 35.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
b4367f6870
commit
35279c9563
3 changed files with 20 additions and 21 deletions
|
@ -1,5 +1,8 @@
|
|||
A library binding various POSIX APIs. POSIX is the IEEE Portable
|
||||
Operating System Interface standard. luaposix is based on lposix.
|
||||
|
||||
Optional Dependency: lua52, lua53.
|
||||
This require one version of Lua installed (lua, lua52, lua53, luajit):
|
||||
Default support for all versions of Lua installed before build.
|
||||
To specify which Lua versions:
|
||||
LUAVER="vers"
|
||||
"vers" must be one or more of "5.1 5.2 5.3 jit" in the right order separated with space
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for lua-posix
|
||||
# Copyright 2019 abooksigun <abooksigun09@gmail.com>
|
||||
# Copyright 2020 abooksigun <abooksigun09@gmail.com>
|
||||
# All rights reserved.
|
||||
#
|
||||
# Redistribution and use of this script, with or without modification, is
|
||||
|
@ -23,7 +23,7 @@
|
|||
|
||||
PRGNAM=lua-posix
|
||||
SRCNAM=luaposix
|
||||
VERSION=${VERSION:-34.1.1}
|
||||
VERSION=${VERSION:-35.0}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
|
@ -69,22 +69,18 @@ find -L . \
|
|||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
build-aux/luke all
|
||||
build-aux/luke PREFIX=$PKG/usr install
|
||||
LUAVER=${LUAVER:-"5.1 5.2 5.3 5.4 jit"}
|
||||
|
||||
# lua 5.2 support.
|
||||
if $(lua5.2 -v &> /dev/null); then
|
||||
sed -i '1s|lua.*|lua5.2|' build-aux/luke
|
||||
build-aux/luke all
|
||||
build-aux/luke PREFIX=$PKG/usr install
|
||||
fi
|
||||
|
||||
# lua 5.3 support
|
||||
if $(lua5.3 -v &> /dev/null); then
|
||||
sed -i '1s|lua.*|lua5.3|' build-aux/luke
|
||||
build-aux/luke all
|
||||
build-aux/luke PREFIX=$PKG/usr install
|
||||
fi
|
||||
for i in $LUAVER
|
||||
do
|
||||
if [ $i != 5.1 ]; then ver=$i; fi
|
||||
if $(lua$ver -v &> /dev/null)
|
||||
then
|
||||
sed -i "1s|lua.*|lua$ver|" build-aux/luke
|
||||
build-aux/luke all
|
||||
build-aux/luke PREFIX=$PKG/usr install
|
||||
fi
|
||||
done
|
||||
|
||||
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
PRGNAM="lua-posix"
|
||||
VERSION="34.1.1"
|
||||
VERSION="35.0"
|
||||
HOMEPAGE="https://github.com/luaposix/luaposix/"
|
||||
DOWNLOAD="https://github.com/luaposix/luaposix/archive/v34.1.1/luaposix-34.1.1.tar.gz"
|
||||
MD5SUM="83130630b4c87c9764d307d8653301a0"
|
||||
DOWNLOAD="https://github.com/luaposix/luaposix/archive/v35.0/luaposix-35.0.tar.gz"
|
||||
MD5SUM="b76815223b3cb2670f97cdbd14cca496"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
REQUIRES="lua-std.normalize"
|
||||
|
|
Loading…
Reference in a new issue