diff options
Diffstat (limited to 'libraries/lua-luv')
-rw-r--r-- | libraries/lua-luv/README | 11 | ||||
-rw-r--r-- | libraries/lua-luv/lua-luv.SlackBuild | 23 | ||||
-rw-r--r-- | libraries/lua-luv/lua-luv.info | 16 |
3 files changed, 31 insertions, 19 deletions
diff --git a/libraries/lua-luv/README b/libraries/lua-luv/README index 418e80f7e5..f94d15c66d 100644 --- a/libraries/lua-luv/README +++ b/libraries/lua-luv/README @@ -1,6 +1,7 @@ -This library makes libuv available to lua scripts. It was made for the luvit -project but should usable from nearly any lua project. +This library makes libuv available to lua scripts. It was made for the +luvit project but should usable from nearly any lua project. -The library can be used by multiple threads at once. Each thread is assumed to -load the library from a different lua_State. Luv will create a unique uv_loop_t -for each state. You can't share uv handles between states/loops. +The library can be used by multiple threads at once. Each thread +is assumed to load the library from a different lua_State. Luv will +create a unique uv_loop_t for each state. You can't share uv handles +between states/loops. diff --git a/libraries/lua-luv/lua-luv.SlackBuild b/libraries/lua-luv/lua-luv.SlackBuild index ce1ed788ce..d7866fd86a 100644 --- a/libraries/lua-luv/lua-luv.SlackBuild +++ b/libraries/lua-luv/lua-luv.SlackBuild @@ -1,8 +1,9 @@ -#!/bin/sh +#!/bin/bash # SlackBuild script for lua-luv -# Copyright 2019 Benjamin Trigona-Harany <slackbuilds@jaxartes.net> +# Copyright 2021 Ruben Schuller <sb@rbn.im> +# Copyright 2019-2021 Benjamin Trigona-Harany <slackbuilds@jaxartes.net> # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -22,14 +23,17 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +cd $(dirname $0) ; CWD=$(pwd) + PRGNAM=lua-luv -VERSION=${VERSION:-1.32.0_0} +VERSION=${VERSION:-1.43.0_0} SRCVER=$(echo $VERSION | tr _ -) COMPATNAM=lua-compat-5.3 -COMPATVER=0.7 +COMPATVER=0.9 COMPATSRC=$COMPATNAM-$COMPATVER BUILD=${BUILD:-1} TAG=${TAG:-_SBo} +PKGTYPE=${PKGTYPE:-tgz} SRCNAM=luv @@ -41,7 +45,14 @@ if [ -z "$ARCH" ]; then esac fi -CWD=$(pwd) +# If the variable PRINT_PACKAGE_NAME is set, then this script will report what +# the name of the created package would be, and then exit. This information +# could be useful to other scripts. +if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then + echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE" + exit 0 +fi + TMP=${TMP:-/tmp/SBo} PKG=$TMP/package-$PRGNAM OUTPUT=${OUTPUT:-/tmp} @@ -102,4 +113,4 @@ mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cd $PKG -/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE diff --git a/libraries/lua-luv/lua-luv.info b/libraries/lua-luv/lua-luv.info index bdce22938b..b39df3b942 100644 --- a/libraries/lua-luv/lua-luv.info +++ b/libraries/lua-luv/lua-luv.info @@ -1,12 +1,12 @@ PRGNAM="lua-luv" -VERSION="1.32.0_0" +VERSION="1.43.0_0" HOMEPAGE="https://github.com/luvit/luv" -DOWNLOAD="https://github.com/luvit/luv/archive/1.32.0-0/luv-1.32.0-0.tar.gz \ - https://github.com/keplerproject/lua-compat-5.3/archive/v0.7/lua-compat-5.3-0.7.tar.gz" -MD5SUM="dc96791ee9d8211cc357b08b1f9894d6 \ - 61c3f1af0d7d587f602ac4a13d77a823" +DOWNLOAD="https://github.com/luvit/luv/archive/1.43.0-0/luv-1.43.0-0.tar.gz \ + https://github.com/keplerproject/lua-compat-5.3/archive/v0.9/lua-compat-5.3-0.9.tar.gz" +MD5SUM="a7d135cd9680cfa761ab5e4e08f147a0 \ + 7c0530123479804e40971b069ea6b0da" DOWNLOAD_x86_64="" MD5SUM_x86_64="" -REQUIRES="libuv luajit" -MAINTAINER="Benjamin Trigona-Harany" -EMAIL="slackbuilds@jaxartes.net" +REQUIRES="luajit" +MAINTAINER="Ruben Schuller" +EMAIL="sb@rbn.im" |