summaryrefslogtreecommitdiffstats
path: root/libraries/lua-lpeg/lua-lpeg.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/lua-lpeg/lua-lpeg.SlackBuild')
-rw-r--r--libraries/lua-lpeg/lua-lpeg.SlackBuild22
1 files changed, 10 insertions, 12 deletions
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 <sb@rbn.im>
# Copyright 2014-2019 Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
# 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