summaryrefslogtreecommitdiff
path: root/libraries/lua-filesystem/lua-filesystem.SlackBuild
diff options
context:
space:
mode:
authorMatteo Bernardini <ponce@slackbuilds.org>2013-03-12 19:59:32 +0100
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-08-03 16:34:18 +0700
commit7a737bf8e2431b42dfb1f68590e6cbfa42015907 (patch)
tree02250d24a35fa1ad7eb0a816eb495199ef8702bd /libraries/lua-filesystem/lua-filesystem.SlackBuild
parentfdae8ebcf6c1494988a5d66ecbfe327b2d3e91fa (diff)
downloadslackbuilds-7a737bf8e2431b42dfb1f68590e6cbfa42015907.tar.gz
libraries/lua-filesystem: Updated for version 1.6.2, cleanups.
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'libraries/lua-filesystem/lua-filesystem.SlackBuild')
-rw-r--r--libraries/lua-filesystem/lua-filesystem.SlackBuild15
1 files changed, 8 insertions, 7 deletions
diff --git a/libraries/lua-filesystem/lua-filesystem.SlackBuild b/libraries/lua-filesystem/lua-filesystem.SlackBuild
index f2667f9cdf..18a878f706 100644
--- a/libraries/lua-filesystem/lua-filesystem.SlackBuild
+++ b/libraries/lua-filesystem/lua-filesystem.SlackBuild
@@ -1,7 +1,7 @@
#!/bin/sh
# Slackware build script for lua-filesystem
-# Copyright Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy, 2012
+# Copyright Matteo Bernardini <ponce@slackbuilds.org>, Pisa, Italy, 2013
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -23,8 +23,8 @@
PRGNAM=lua-filesystem
SRCNAM=luafilesystem
-VERSION=${VERSION:-20120408_84f1af5}
-BUILD=${BUILD:-2}
+VERSION=${VERSION:-1.6.2}
+BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -71,13 +71,14 @@ find -L . \
sed -i \
-e "s|/usr/local|/usr|" \
- -e "s|/lib|/lib${LIBDIRSUFFIX}|" \
- -e "s|-O2 -Wall -fPIC|${SLKCFLAGS} -Wall|" \
+ -e "s|/lib|/lib$LIBDIRSUFFIX|" \
+ -e "s|-O2 -Wall -fPIC|$SLKCFLAGS -Wall|" \
config
make
-install -m 0755 -D src/lfs.so $PKG/usr/lib${LIBDIRSUFFIX}/lua/5.1/lfs.so
-( cd $PKG/usr/lib${LIBDIRSUFFIX} ; ln -s lua/5.1/lfs.so ; ln -s {,lib}lfs.so )
+install -m 0755 -D src/lfs.so $PKG/usr/lib$LIBDIRSUFFIX/lua/5.1/lfs.so
install -m 0644 -D src/lfs.h $PKG/usr/include/lfs.h
+
+# install a pkgconfig file
install -m 0644 -D $CWD/lfs.pc $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig/lfs.pc
sed -i "s|/lib|/lib$LIBDIRSUFFIX|" $PKG/usr/lib$LIBDIRSUFFIX/pkgconfig/lfs.pc