Browse Source

d/lua: Fixed Lua library path.

slackware-14.2
Damien Goutte-Gattat 10 years ago
parent
commit
75afdf2c66
  1. 9
      d/lua/lua.SlackBuild

9
d/lua/lua.SlackBuild

@ -32,7 +32,7 @@ WGET=${WGET:-http://www.lua.org/ftp/$ARCHIVE}
# Build infos
NAMEPKG=${NAMEPKG:-lua}
BUILD=${BUILD:-1GGD}
BUILD=${BUILD:-2GGD}
ARCH=${ARCH:-$(uname -m | sed 's/^i.86$/i486/;s/^arm.*/arm/')}
EXT=${EXT:-txz}
@ -71,6 +71,10 @@ cd $TMP
echo "Building $ARCHIVE..."
tar xf $CWD/$ARCHIVE
cd $NAME
sed -i 's,^#define LUA_ROOT.*$,#define LUA_ROOT "/usr/",' src/luaconf.h
if [ "x$ARCH" = xx86_64 ]; then
sed -i 's,^#define LUA_CDIR.*$,#define LUA_CDIR "/usr/lib64/lua/5.1/",' src/luaconf.h
fi
make linux INSTALL_TOP=/usr INSTALL_LIB=/usr/lib$LIBDIRSUFFIX
make install INSTALL_TOP=$PKG/usr \
INSTALL_LIB=$PKG/usr/lib$LIBDIRSUFFIX \
@ -115,8 +119,9 @@ PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
"
#rm -rf $TMP/$NAME
#"
if type -p fakeroot ; then
echo "$PACKAGING" | fakeroot
else

Loading…
Cancel
Save