games/cubosphere: *really* build with lua51.

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2024-11-03 02:04:00 -05:00 committed by Willy Sudiarto Raharjo
parent 4de4ef1d48
commit da851e9497
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -22,6 +22,8 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
# 20241103 bkw: Modified by SlackBuilds.org, BUILD=3: build with lua51.
# 20241019 bkw: Modified by SlackBuilds.org, BUILD=2:
# - build with luajit.
# - binary in /usr/games.
@ -33,7 +35,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=cubosphere
VERSION=${VERSION:-beta0.3a}
BUILD=${BUILD:-2}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
@ -89,11 +91,9 @@ cd src
sed -i \
-e '/^PREFIX/s|=.*|=/usr|' \
-e "s|-O3$|$SLKCFLAGS|" \
-e "s|^LUALIBS=.*|LUALIBS=-lluajit-5.1|" \
-e "s|^LUAINC=.*|LUAINC=-I/usr/include/luajit-2.0|" \
Makefile
make
make || make -j1
make install DESTDIR=$PKG
cd -