From 47a63c10461892fd47a1e88d7ddf472fe63c4cd7 Mon Sep 17 00:00:00 2001 From: Alexander Verbovetsky Date: Fri, 1 Mar 2024 21:30:17 +0700 Subject: libraries/lua-lpeg: Updated for version 1.1.0. Signed-off-by: Willy Sudiarto Raharjo --- libraries/lua-lpeg/lua-lpeg.SlackBuild | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'libraries/lua-lpeg/lua-lpeg.SlackBuild') diff --git a/libraries/lua-lpeg/lua-lpeg.SlackBuild b/libraries/lua-lpeg/lua-lpeg.SlackBuild index 14d9a9d1e1..b6771369df 100644 --- a/libraries/lua-lpeg/lua-lpeg.SlackBuild +++ b/libraries/lua-lpeg/lua-lpeg.SlackBuild @@ -2,6 +2,7 @@ # SlackBuild script for lua-lpeg +# Copyright 2024 Alexander Verbovetsky, Moscow, Russia # Copyright 2021 Ruben Schuller # Copyright 2014-2019 Benjamin Trigona-Harany # All rights reserved. @@ -27,7 +28,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=lua-lpeg SRCNAM=lpeg -VERSION=${VERSION:-1.0.2} +VERSION=${VERSION:-1.1.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -40,9 +41,6 @@ if [ -z "$ARCH" ]; then esac fi -# 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 @@ -78,20 +76,20 @@ find -L . \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; for v in "" "5.2" "5.3"; do - _pkgconfigv=$(echo $v | tr --delete .) - if pkg-config --exists lua$_pkgconfigv; then - make LUADIR=/usr/include/lua${v}/ - install -m 0755 -D lpeg.so $PKG/$(pkg-config --variable INSTALL_CMOD lua$_pkgconfigv)/lpeg.so - install -m 0644 -D re.lua $PKG/$(pkg-config --variable INSTALL_LMOD lua$_pkgconfigv)/re.lua - make clean - fi + _pkgconfigv=$(echo $v | tr --delete .) + if pkg-config --exists lua$_pkgconfigv; then + make LUADIR=/usr/include/lua${v}/ + install -m 0755 -D lpeg.so $PKG/$(pkg-config --variable INSTALL_CMOD lua$_pkgconfigv)/lpeg.so + install -m 0644 -D re.lua $PKG/$(pkg-config --variable INSTALL_LMOD lua$_pkgconfigv)/re.lua + make clean + 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 mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION -cp -a HISTORY $PKG/usr/doc/$PRGNAM-$VERSION +cp -a HISTORY README.* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install -- cgit v1.2.3-79-gdb01