summaryrefslogtreecommitdiffstats
path: root/libraries/lua-zlib/lua-zlib.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/lua-zlib/lua-zlib.SlackBuild')
-rw-r--r--libraries/lua-zlib/lua-zlib.SlackBuild27
1 files changed, 13 insertions, 14 deletions
diff --git a/libraries/lua-zlib/lua-zlib.SlackBuild b/libraries/lua-zlib/lua-zlib.SlackBuild
index 3de7fe965a..0344bdce12 100644
--- a/libraries/lua-zlib/lua-zlib.SlackBuild
+++ b/libraries/lua-zlib/lua-zlib.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for lua-zlib
-# Copyright 2013, Andrew Tkalia <anddt@yandex.ru>, Ukraine, Kyiv
+# Copyright 2013-2014, Andrew Tkalia <anddt@yandex.ua>, Ukraine, Kyiv
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,12 +23,11 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=lua-zlib
-VERSION="2c94736ee8_git"
+HASH=${HASH:-c0014bcbc4c3fd65ba3519b10965f0c184c1a059}
+VERSION=20140201_$(echo $HASH |cut -c -7)
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
-HASH=${HASH:-2c94736ee8e88d7d9b12254f226a1e598f433756}
-
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@@ -43,16 +42,16 @@ PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}
if [ "$ARCH" = "i486" ]; then
- SLKCFLAGS="-O2 -march=i486 -mtune=i686"
+ SLKCFLAGS="-march=i486 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
- SLKCFLAGS="-O2 -march=i686 -mtune=i686"
+ SLKCFLAGS="-march=i686 -mtune=i686"
LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
- SLKCFLAGS="-O2 -fPIC"
+ SLKCFLAGS=""
LIBDIRSUFFIX="64"
else
- SLKCFLAGS="-O2"
+ SLKCFLAGS=""
LIBDIRSUFFIX=""
fi
@@ -62,18 +61,18 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$HASH
-tar xvf $CWD/$PRGNAM-$HASH.tar.gz || tar xvf $CWD/$HASH
+tar xvf $CWD/$HASH.tar.gz
cd $PRGNAM-$HASH
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 \
- \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
- -exec chmod 644 {} \;
+ \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
+ -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 {} \;
# Getting default cflags from config then append slkcflags to them and passing to make
_CFLAGS=`cat Makefile |grep ^LNX_CFLAGS |sed "s,LNX_CFLAGS\ \ \=,,g"`" "${SLKCFLAGS}
-_LIBDIR=`cat Makefile |grep ^LIBDIR |sed "s,LIBDIR\ \ \ \=,,g"`${LIBDIRSUFFIX}
+_LIBDIR=`cat Makefile |grep ^LIBDIR |sed "s,LIBDIR\ \ \ ?\=,,g"`${LIBDIRSUFFIX}
make linux \
LUAPATH=/usr/share/lua/5.1 \
LUACPATH=/usr/lib${LIBDIRSUFFIX}/lua/5.1 \