diff options
author | Cem Keylan <cem@ckyln.com> | 2022-01-30 14:38:14 +0300 |
---|---|---|
committer | Cem Keylan <cem@ckyln.com> | 2022-01-30 14:38:14 +0300 |
commit | 1f1ad3a07a93b1d00a212faacfa5f5f958a14ff6 (patch) | |
tree | a41f6ae7a46e3bb3f976244256f2c36b67e8dbeb /community | |
parent | 4f643af36666c1de48f631682bc133f99d421e12 (diff) | |
download | repository-1f1ad3a07a93b1d00a212faacfa5f5f958a14ff6.tar.gz |
lua: bump to 5.4.4
Diffstat (limited to 'community')
-rwxr-xr-x | community/lua/build | 46 | ||||
-rw-r--r-- | community/lua/checksums | 4 | ||||
-rw-r--r-- | community/lua/files/lua.pc.in | 20 | ||||
-rw-r--r-- | community/lua/sources | 3 | ||||
-rw-r--r-- | community/lua/version | 2 |
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 |