diff options
Diffstat (limited to 'libraries/lua-luv/lua-luv.SlackBuild')
-rw-r--r-- | libraries/lua-luv/lua-luv.SlackBuild | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/libraries/lua-luv/lua-luv.SlackBuild b/libraries/lua-luv/lua-luv.SlackBuild index c8cabbbacc..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,15 +23,19 @@ # OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -SRCNAM=luv -PRGNAM=lua-$SRCNAM -VERSION=${VERSION:-1.32.0_0} +cd $(dirname $0) ; CWD=$(pwd) + +PRGNAM=lua-luv +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 if [ -z "$ARCH" ]; then case "$( uname -m )" in @@ -40,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} @@ -101,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 |