aboutsummaryrefslogtreecommitdiff
path: root/community/lua
diff options
context:
space:
mode:
Diffstat (limited to 'community/lua')
-rwxr-xr-xcommunity/lua/build46
-rw-r--r--community/lua/checksums4
-rw-r--r--community/lua/files/lua.pc.in20
-rw-r--r--community/lua/sources3
-rw-r--r--community/lua/version2
5 files changed, 44 insertions, 31 deletions
diff --git a/community/lua/build b/community/lua/build
index f41732a5..bd2045fb 100755
--- a/community/lua/build
+++ b/community/lua/build
@@ -1,34 +1,24 @@
#!/bin/sh -e
-make MYCFLAGS="$CFLAGS -fPIC" \
- MYLDFLAGS="$LDFLAGS -static" \
- posix
+export DESTDIR="$1"
-make INSTALL_TOP="$1/usr" \
- INSTALL_MAN="$1/usr/share/man/man1" \
- INSTALL_DATA="cp -d" \
- install
+# Make LUA_ROOT "/usr" instead of "/usr/local"
+clsed '/define LUA_ROOT/c#define LUA_ROOT "/usr/"' src/luaconf.h
-mkdir -p "$1/usr/lib/pkgconfig"
-cat <<EOF> "$1/usr/lib/pkgconfig/lua.pc"
-V=${2%.*}
-R=$2
+# Optionally link with readline if available
+r=$(cpt l -C readline 1 "")
-prefix=/usr
-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
+mk() {
+ make \
+ MYCFLAGS="$CFLAGS -fPIC" \
+ MYLDFLAGS="$LDFLAGS" \
+ INSTALL_TOP="$DESTDIR/usr" \
+ INSTALL_MAN="$DESTDIR/usr/share/man/man1" \
+ INSTALL_DATA="cp -d" \
+ "$@"
+}
-Name: Lua
-Description: An Extensible Extension Language
-Version: \${R}
-Requires:
-Libs: -L\${libdir} -llua -lm
-Cflags: -I\${includedir}
-EOF
+mk "linux${r:+-readline}"
+mk install
+
+clinst -Dm644 -s "s|@V@|${2%.*}|;s|@R@|$2|" lua.pc.in "$1/usr/lib/pkgconfig/lua.pc"
diff --git a/community/lua/checksums b/community/lua/checksums
index 1a49a3ca..75d36128 100644
--- a/community/lua/checksums
+++ b/community/lua/checksums
@@ -1 +1,3 @@
-f8612276169e3bfcbcfb8f226195bfc6e466fe13042f1076cbde92b7ec96bbfb lua-5.4.3.tar.gz
+%BLAKE3
+ca54489393cd38e35d295a9c35dbf0da5336a66ddb7b2213eed6c2f3039f53b1 lua-5.4.4.tar.gz
+85d344b365c4d11fa4c7c48231bdc04321a94db1f4eb97d85ab2a4c19f56a014 lua.pc.in
diff --git a/community/lua/files/lua.pc.in b/community/lua/files/lua.pc.in
new file mode 100644
index 00000000..aeaee372
--- /dev/null
+++ b/community/lua/files/lua.pc.in
@@ -0,0 +1,20 @@
+V=@V@
+R=@R@
+
+prefix=/usr
+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}
diff --git a/community/lua/sources b/community/lua/sources
index aad97243..26a031f0 100644
--- a/community/lua/sources
+++ b/community/lua/sources
@@ -1 +1,2 @@
-https://www.lua.org/ftp/lua-5.4.3.tar.gz
+https://www.lua.org/ftp/lua-5.4.4.tar.gz
+files/lua.pc.in
diff --git a/community/lua/version b/community/lua/version
index 12425e2e..c1be1270 100644
--- a/community/lua/version
+++ b/community/lua/version
@@ -1 +1 @@
-5.4.3 1
+5.4.4 1