summaryrefslogtreecommitdiff
path: root/development/lua/lua.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'development/lua/lua.SlackBuild')
-rw-r--r--development/lua/lua.SlackBuild9
1 files changed, 7 insertions, 2 deletions
diff --git a/development/lua/lua.SlackBuild b/development/lua/lua.SlackBuild
index d0929e17cb..b2d9979b39 100644
--- a/development/lua/lua.SlackBuild
+++ b/development/lua/lua.SlackBuild
@@ -5,6 +5,7 @@
# Written by Menno Duursma
# Modified by the SlackBuilds.org project
# Modified by Aaron W. Hsu
+# Updated by ponce
# This program is free software. It comes without any warranty.
# Granted WTFPL, Version 2, as published by Sam Hocevar. See
@@ -12,7 +13,7 @@
PRGNAM=lua
VERSION=${VERSION:-5.1.4}
-BUILD=${BUILD:-4}
+BUILD=${BUILD:-5}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -49,6 +50,10 @@ tar xvf $CWD/$PRGNAM-${VERSION}.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
+# apply patch-lua-5.1.4-2
+# http://www.lua.org/bugs.html#5.1.4
+( cd src ; patch -p0 < $CWD/patch-lua-5.1.4-2 )
+
# Fix up a to-be-installed header and the pkgconfig file
sed -i "s|/usr/local|/usr|" src/luaconf.h
sed -i "s|lib/lua|lib$LIBDIRSUFFIX/lua|" src/luaconf.h
@@ -80,7 +85,7 @@ cd shared
ln -s liblua.so.5.1.4 liblua.so.5
ln -s liblua.so.5.1.4 liblua.so
)
-cd -
+cd ..
# and install the pkgconfig file
mkdir -p $PKG/usr/lib${LIBDIRSUFFIX}/pkgconfig