aboutsummaryrefslogtreecommitdiff
path: root/libraries/lua-zlib
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/lua-zlib')
-rw-r--r--libraries/lua-zlib/lua-zlib.SlackBuild27
-rw-r--r--libraries/lua-zlib/lua-zlib.info8
2 files changed, 17 insertions, 18 deletions
diff --git a/libraries/lua-zlib/lua-zlib.SlackBuild b/libraries/lua-zlib/lua-zlib.SlackBuild
index 3de7fe965a661..0344bdce12038 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 \
diff --git a/libraries/lua-zlib/lua-zlib.info b/libraries/lua-zlib/lua-zlib.info
index cf34fe5f052e8..6c9d6c741a22b 100644
--- a/libraries/lua-zlib/lua-zlib.info
+++ b/libraries/lua-zlib/lua-zlib.info
@@ -1,10 +1,10 @@
PRGNAM="lua-zlib"
-VERSION="2c94736ee8_git"
+VERSION="20140201_c0014bc"
HOMEPAGE="https://github.com/brimworks/lua-zlib"
-DOWNLOAD="https://nodeload.github.com/brimworks/lua-zlib/tar.gz/2c94736ee8e88d7d9b12254f226a1e598f433756"
-MD5SUM="5b3bbe843c0ab4c93682c369d65e58e6"
+DOWNLOAD="https://github.com/brimworks/lua-zlib/archive/c0014bcbc4c3fd65ba3519b10965f0c184c1a059.tar.gz"
+MD5SUM="451de7577901f2cc73a015a0afaa08ac"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="lua"
MAINTAINER="Andrew Tkalia"
-EMAIL="anddt@yandex.ru"
+EMAIL="anddt@yandex.ua"