From 5fbe0675106d75469bcc14850c4a31844074c6b5 Mon Sep 17 00:00:00 2001 From: Peter Marquardt Date: Tue, 3 Mar 2020 11:43:17 +0100 Subject: [PATCH] lua: update to 5.3.5 and fix install - modified patch not to stumble upon external $V - pkg-config use $LUA_V intead of $V --- lua.be0 | 77 +++++++++++++++++++++++++++++++-------------------------- 1 file changed, 42 insertions(+), 35 deletions(-) diff --git a/lua.be0 b/lua.be0 index bab4b6ed9..57c26aac5 100755 --- a/lua.be0 +++ b/lua.be0 @@ -1,60 +1,65 @@ #!/bin/env beesh -# BEE_VERSION lua-5.3.3-1 +# BEE_VERSION lua-5.3.5-0 SRCURL[0]="https://www.lua.org/ftp/lua-${PKGVERSION}.tar.gz" -PATCHURL[0]="http://www.linuxfromscratch.org/patches/blfs/7.9/lua-5.3.2-shared_library-1.patch" -PGRP=( uncategorized ) +# PATCHURL[0]="http://www.linuxfromscratch.org/patches/blfs/svn/lua-5.3.5-shared_library-1.patch" +# LFS/AUR patch is just plain messy using $V +PATCHURL+=("/src/mariux/patches/lua-5.3.5-mariux-shared_library.patch") -B=${S} +build_in_sourcedir +# sourcesubdir_append src BEE_CONFIGURE=none -# EXCLUDE="" +#mee_extract() { +# bee_extract "${@}" +#} -mee_patch() { - bee_patch -} +#mee_patch() { +# bee_patch "${@}" +#} -mee_configure() { - bee_configure -} +#mee_configure() { +# bee_configure +#} mee_build() { sed -i '/#define LUA_ROOT/s:/usr/local/:/usr/:' src/luaconf.h bee_build linux "MYCFLAGS=-fPIC -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1" - cat >lua.pc <<-EOF - V=${PKGVERSION[2]} - R=${PKGVERSION} - prefix=${PREFIX} - - INSTALL_BIN=\${prefix}/bin - INSTALL_INC=\${prefix}/include - INSTALL_LIB=\${prefix}/lib - INSTALL_MAN=\${prefix}/man/man1 - INSTALL_LMOD=\${prefix}/share/lua/${V} - INSTALL_CMOD=\${prefix}/lib/lua/${V} - - exec_prefix=\${prefix} - libdir=\${exec_prefix}/lib - includedir=\${prefix}/include - - Name: Lua - Description: An Extensible Extension Language - Version: \${R} - Requires: - Libs: -L\${libdir} -llua -lm - Cflags: -I\${includedir} - EOF + + cat >lua.pc <