aboutsummaryrefslogtreecommitdiff
path: root/libraries/lua-posix
diff options
context:
space:
mode:
authorabooksigun <abooksigun09@gmail.com>2020-09-04 00:14:19 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-09-04 00:14:19 +0700
commit35279c95634a5459d217cfcbabdcdb023359834d (patch)
treebbeb9d10b592c1e8d3c19fa0527a83a841702f07 /libraries/lua-posix
parentb4367f687082fa6075bb3d5819d5195211b88b69 (diff)
libraries/lua-posix: Updated for version 35.0.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/lua-posix')
-rw-r--r--libraries/lua-posix/README5
-rw-r--r--libraries/lua-posix/lua-posix.SlackBuild30
-rw-r--r--libraries/lua-posix/lua-posix.info6
3 files changed, 20 insertions, 21 deletions
diff --git a/libraries/lua-posix/README b/libraries/lua-posix/README
index 51e11febe169b..36ac87847895e 100644
--- a/libraries/lua-posix/README
+++ b/libraries/lua-posix/README
@@ -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
diff --git a/libraries/lua-posix/lua-posix.SlackBuild b/libraries/lua-posix/lua-posix.SlackBuild
index dd351655c260d..e7bf79dccb5ea 100644
--- a/libraries/lua-posix/lua-posix.SlackBuild
+++ b/libraries/lua-posix/lua-posix.SlackBuild
@@ -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
diff --git a/libraries/lua-posix/lua-posix.info b/libraries/lua-posix/lua-posix.info
index d2afb78d236ac..009df7ef728fb 100644
--- a/libraries/lua-posix/lua-posix.info
+++ b/libraries/lua-posix/lua-posix.info
@@ -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"