|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
# Build script for Slackware
|
|
|
|
|
# Copyright (C) 2011,2012 Damien Goutte-Gattat
|
|
|
|
|
# Copyright (C) 2011,2012,2013 Damien Goutte-Gattat
|
|
|
|
|
#
|
|
|
|
|
# Redistribution and use of this script, with or without modifications,
|
|
|
|
|
# is permitted provided that the following conditions are met:
|
|
|
|
@ -26,7 +26,7 @@
|
|
|
|
|
|
|
|
|
|
# Source package infos
|
|
|
|
|
NAMESRC=${NAMESRC:-lua}
|
|
|
|
|
VERSION=${VERSION:-5.2.1}
|
|
|
|
|
VERSION=${VERSION:-5.2.2}
|
|
|
|
|
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION.tar.gz}
|
|
|
|
|
WGET=${WGET:-http://www.lua.org/ftp/$ARCHIVE}
|
|
|
|
|
|
|
|
|
@ -75,7 +75,7 @@ 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.2/",' src/luaconf.h
|
|
|
|
|
fi
|
|
|
|
|
make linux INSTALL_TOP=/usr INSTALL_LIB=/usr/lib$LIBDIRSUFFIX
|
|
|
|
|
make linux INSTALL_TOP=/usr INSTALL_LIB=/usr/lib$LIBDIRSUFFIX MYLIBS=-ltermcap
|
|
|
|
|
make install INSTALL_TOP=$PKG/usr \
|
|
|
|
|
INSTALL_LIB=$PKG/usr/lib$LIBDIRSUFFIX \
|
|
|
|
|
INSTALL_CMOD=$PKG/usr/lib$LIBDIRSUFFIX/lua/5.2
|
|
|
|
|