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.SlackBuild18
1 files changed, 7 insertions, 11 deletions
diff --git a/development/lua/lua.SlackBuild b/development/lua/lua.SlackBuild
index 18509b1725..c616ccc33e 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 ..