aboutsummaryrefslogtreecommitdiff
path: root/development/lua/lua.SlackBuild
diff options
context:
space:
mode:
authorponce <matteo.bernardini@gmail.com>2012-03-29 23:41:08 -0400
committerdsomero <xgizzmo@slackbuilds.org>2012-03-29 23:41:08 -0400
commitf022c42d59e56d276c030c29f67626bdf4a92909 (patch)
tree6342d4baf864cee20f48d2f2b406d9282ea81216 /development/lua/lua.SlackBuild
parent891b5b07ae71aaf903ca493dd7573f77a6e738a8 (diff)
development/lua: Updated for version 5.1.5.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'development/lua/lua.SlackBuild')
-rw-r--r--development/lua/lua.SlackBuild18
1 files changed, 7 insertions, 11 deletions
diff --git a/development/lua/lua.SlackBuild b/development/lua/lua.SlackBuild
index 18509b172582..c616ccc33e68 100644
--- a/development/lua/lua.SlackBuild
+++ b/development/lua/lua.SlackBuild
@@ -12,8 +12,8 @@
# http://sam.zoy.org/wtfpl/COPYING for more details.
PRGNAM=lua
-VERSION=${VERSION:-5.1.4}
-BUILD=${BUILD:-7}
+VERSION=${VERSION:-5.1.5}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -50,10 +50,6 @@ tar xvf $CWD/$PRGNAM-${VERSION}.tar.gz
cd $PRGNAM-$VERSION
chown -R root:root .
-# apply patch-lua-5.1.4-4
-# http://www.lua.org/bugs.html#5.1.4
-( cd src ; patch -p0 < $CWD/patch-lua-5.1.4-4 )
-
# 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
@@ -78,12 +74,12 @@ make linux install \
mkdir -p shared
cd shared
ar -x $PKG/usr/lib${LIBDIRSUFFIX}/liblua.a
- gcc -ldl -lreadline -lhistory -lncurses -lm -shared *.o -o liblua.so.5.1.4
- cp -a liblua.so.5.1.4 $PKG/usr/lib${LIBDIRSUFFIX}
+ gcc -ldl -lreadline -lhistory -lncurses -lm -shared *.o -o liblua.so.$VERSION
+ cp -a liblua.so.$VERSION $PKG/usr/lib${LIBDIRSUFFIX}
( cd $PKG/usr/lib${LIBDIRSUFFIX}
- ln -s liblua.so.5.1.4 liblua.so.5.1
- ln -s liblua.so.5.1.4 liblua.so.5
- ln -s liblua.so.5.1.4 liblua.so
+ ln -s liblua.so.$VERSION liblua.so.5.1
+ ln -s liblua.so.$VERSION liblua.so.5
+ ln -s liblua.so.$VERSION liblua.so
)
cd ..