aboutsummaryrefslogtreecommitdiff
path: root/development/lua/lua.SlackBuild
diff options
context:
space:
mode:
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 a07cc67c33f2..e6f78d0a4b3b 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