From b8a07a9b0a807357cbc1b0f2d095d70185955d0e Mon Sep 17 00:00:00 2001 From: Benjamin Trigona-Harany Date: Sat, 17 Mar 2018 21:46:53 -0700 Subject: libraries/lua-lpeg: Script clean up. Signed-off-by: Benjamin Trigona-Harany --- libraries/lua-lpeg/lua-lpeg.SlackBuild | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'libraries') diff --git a/libraries/lua-lpeg/lua-lpeg.SlackBuild b/libraries/lua-lpeg/lua-lpeg.SlackBuild index 0c0f08465f5cf..dd0f83c5d03ce 100644 --- a/libraries/lua-lpeg/lua-lpeg.SlackBuild +++ b/libraries/lua-lpeg/lua-lpeg.SlackBuild @@ -2,7 +2,7 @@ # SlackBuild script for lua-lpeg -# Copyright 2014 Benjamin Trigona-Harany +# Copyright 2014-2018 Benjamin Trigona-Harany # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -57,20 +57,18 @@ rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $SRCNAM-$VERSION -tar xvf $CWD/$SRCNAM-$VERSION.tar.?z* || tar xvf $CWD/v$VERSION.tar.?z* +tar xvf $CWD/$SRCNAM-$VERSION.tar.gz cd $SRCNAM-$VERSION chown -R root:root . find -L . \ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ - -o -perm 511 \) -exec chmod 755 {} \; -o \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ - -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; + -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; make - -# Manual install -install -m 0755 -D lpeg.so $PKG/usr/lib$LIBDIRSUFFIX/lua/5.1/lpeg.so -install -m 0644 -D re.lua $PKG/usr/share/lua/5.1/re.lua +install -m 0755 -D lpeg.so $PKG/$(pkg-config --variable INSTALL_CMOD lua)/lpeg.so +install -m 0644 -D re.lua $PKG/$(pkg-config --variable INSTALL_LMOD lua)/re.lua 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 -- cgit v1.2.3