summaryrefslogtreecommitdiff
path: root/development/lua/lua.SlackBuild
diff options
context:
space:
mode:
authorMenno E. Duursma <druiloor@zonnet.nl>2010-05-11 19:44:17 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 19:44:17 +0200
commit2c9a0ee9a83316886e03ba1f5e79b65f791856de (patch)
tree471422cd2a09eac3d802e6f9b291efeb40407845 /development/lua/lua.SlackBuild
parent75dfcfc50dfeaa22656b0dfdea7403af5b477084 (diff)
downloadslackbuilds-2c9a0ee9a83316886e03ba1f5e79b65f791856de.tar.gz
development/lua: Updated for version 5.1.3
Diffstat (limited to 'development/lua/lua.SlackBuild')
-rw-r--r--development/lua/lua.SlackBuild17
1 files changed, 12 insertions, 5 deletions
diff --git a/development/lua/lua.SlackBuild b/development/lua/lua.SlackBuild
index a07cc67c33..e6f78d0a4b 100644
--- a/development/lua/lua.SlackBuild
+++ b/development/lua/lua.SlackBuild
@@ -6,10 +6,11 @@
# Modified by the SlackBuilds.org project
PRGNAM=lua
-VERSION=5.1.2
+VERSION=5.1.3
ARCH=${ARCH:-i486}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
+
CWD=$(pwd)
TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
@@ -25,7 +26,7 @@ rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP || exit 1
rm -rf $PRGNAM-$VERSION
-tar xzvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
+tar xvf $CWD/$PRGNAM-$VERSION.tar.gz || exit 1
cd $PRGNAM-$VERSION || exit 1
chown -R root:root .
chmod -R a-s,u+rw,go-w+r .
@@ -39,10 +40,16 @@ sed -i "s/-DLUA_USE_LINUX/\"-DLUA_USE_LINUX $SLKCFLAGS\"/g" src/Makefile || exit
make linux
make install INSTALL_TOP=$PKG/usr || exit 1
+# Install the pkg-config file so other apps can find LUA
+# Also, fix the prefix path in lua.pc
+mkdir -p $PKG/usr/lib/pkgconfig
+sed 's|prefix= /usr/local|prefix= /usr|' etc/lua.pc > \
+ $PKG/usr/lib/pkgconfig/lua.pc
+
# Let's make sure all of the library symlinks correctly exist
( cd $PKG/usr/lib
- ln -sf liblua.so.5.1.2 liblua.so
- ln -sf liblua.so.5.1.2 liblua.so.5
+ ln -sf liblua.so.${VERSION} liblua.so
+ ln -sf liblua.so.${VERSION} liblua.so.5
)
( cd $PKG