summaryrefslogtreecommitdiff
path: root/development/lua/lua.SlackBuild
diff options
context:
space:
mode:
authorponce <matteo.bernardini@gmail.com>2010-12-11 16:38:23 -0600
committerRobby Workman <rworkman@slackbuilds.org>2010-12-11 16:38:23 -0600
commit265bcc8a0ffc5bab3e64f5752e206ce9b2cf4c18 (patch)
treecd5fea062f081b384b5941c0dcd6ac789fc7a2ff /development/lua/lua.SlackBuild
parent9fa597855ae657dd5692616fa3947e22c397322a (diff)
downloadslackbuilds-265bcc8a0ffc5bab3e64f5752e206ce9b2cf4c18.tar.gz
development/lua: bugfixes from http://www.lua.org/bugs.html#5.1.4
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
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