summaryrefslogtreecommitdiff
path: root/devel/lua
diff options
context:
space:
mode:
authorrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
committerrawnix ports <ports@rawnix.org>2026-09-26 18:19:05 +0000
commitc82e88dd00d1b0b7fcfb4e5628d99611388cef6f (patch)
tree56d864b5a5c6c145edd96178ae219a8f90e191a6 /devel/lua
downloadports-c82e88dd00d1b0b7fcfb4e5628d99611388cef6f.tar.gz
sync 2026-09-26 18:19 UTC
1672 files changed, 151396 insertions(+)
Diffstat (limited to 'devel/lua')
-rw-r--r--devel/lua/.footprint27
-rw-r--r--devel/lua/.signature6
-rw-r--r--devel/lua/MAKEPKG83
3 files changed, 116 insertions, 0 deletions
diff --git a/devel/lua/.footprint b/devel/lua/.footprint
new file mode 100644
index 0000000..1dd755f
--- /dev/null
+++ b/devel/lua/.footprint
@@ -0,0 +1,27 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/lua
+-rwxr-xr-x root/root usr/bin/luac
+drwxr-xr-x root/root usr/include/
+-rw-r--r-- root/root usr/include/lauxlib.h
+-rw-r--r-- root/root usr/include/lua.h
+-rw-r--r-- root/root usr/include/lua.hpp
+-rw-r--r-- root/root usr/include/luaconf.h
+-rw-r--r-- root/root usr/include/lualib.h
+drwxr-xr-x root/root usr/lib/
+-rwxr-xr-x root/root usr/lib/liblua.so.5.5.1
+lrwxrwxrwx root/root usr/lib/liblua.so -> liblua.so.5.5.1
+lrwxrwxrwx root/root usr/lib/liblua.so.5.5 -> liblua.so.5.5.1
+drwxr-xr-x root/root usr/lib/lua/
+drwxr-xr-x root/root usr/lib/lua/5.5/
+drwxr-xr-x root/root usr/lib/pkgconfig/
+-rw-r--r-- root/root usr/lib/pkgconfig/lua.pc
+lrwxrwxrwx root/root usr/lib/pkgconfig/lua-5.5.pc -> lua.pc
+lrwxrwxrwx root/root usr/lib/pkgconfig/lua5.5.pc -> lua.pc
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/lua/
+drwxr-xr-x root/root usr/share/lua/5.5/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man1/
+-rw-r--r-- root/root usr/share/man/man1/lua.1.gz
+-rw-r--r-- root/root usr/share/man/man1/luac.1.gz
diff --git a/devel/lua/.signature b/devel/lua/.signature
new file mode 100644
index 0000000..e867f38
--- /dev/null
+++ b/devel/lua/.signature
@@ -0,0 +1,6 @@
+RWTZ9IduCSQ/mOXNgyeUF5zKLBcodMkzXiMs9EFfIs0z1/IOhvmZ0GfmiE4de87a878Zy7nl1mrIlYGO4sp/Clhgjm6T+T+sQwU=
+
+SHA256 (MAKEPKG) = 659b74a85b1f807caf44d8a10d630c1f024ba9f08b2293bd2be6f65ed6146489
+SHA256 (.footprint) = 9888e15e2895c495aa121af083db81aba6683d2f0b4cf4b9dd0c3c7cf13fa4ef
+SHA256 (lua-5.5.1.tar.gz) = 1c4b4068d67061f2a2231ad2b5422e77acea1487ea9890f6320af614f4373dce
+SHA256 (lua#5.5.1-1.pkg.tar.gz) = e1093c2a26e8ba7702bcd78c7d40d0108a3b4405e926650c1baf1f99214f6b8a
diff --git a/devel/lua/MAKEPKG b/devel/lua/MAKEPKG
new file mode 100644
index 0000000..940faeb
--- /dev/null
+++ b/devel/lua/MAKEPKG
@@ -0,0 +1,83 @@
+#!/bin/mkpkg
+# description: Lightweight embeddable scripting language
+# url: https://www.lua.org
+
+name=lua
+version=5.5.1
+release=1
+_basever=5.5
+depends=()
+source=(https://www.lua.org/ftp/$name-$version.tar.gz)
+
+sha256sums=(
+ "1c4b4068d67061f2a2231ad2b5422e77acea1487ea9890f6320af614f4373dce"
+)
+
+build() {
+ cd $name-$version
+
+ # patch Makefile for shared library and our flags
+ sed -i src/Makefile \
+ -e "s|^CC=.*|CC= ${CC:-cc}|" \
+ -e "s|^CFLAGS=.*|CFLAGS= $CFLAGS -DLUA_COMPAT_5_3 -fPIC|" \
+ -e "s|^MYCFLAGS=.*|MYCFLAGS=|" \
+ -e "s|^MYLDFLAGS=.*|MYLDFLAGS= $LDFLAGS|"
+
+ # build static lib and objects
+ make -C src \
+ SYSCFLAGS="-DLUA_USE_LINUX" \
+ SYSLIBS="-ldl" \
+ all
+
+ # build shared library from objects (exclude lua.o and luac.o — binaries)
+ objs=""
+ for o in src/*.o; do
+ case $o in */lua.o|*/luac.o) continue ;; esac
+ objs="$objs $o"
+ done
+ ${CC:-cc} -shared -Wl,-soname,liblua.so.$_basever \
+ -o src/liblua.so.$version $objs -lm -ldl
+
+ make \
+ INSTALL_TOP=$PKG/usr \
+ INSTALL_MAN=$PKG/usr/share/man/man1 \
+ install
+
+ # shared library
+ install -m 755 src/liblua.so.$version $PKG/usr/lib/liblua.so.$version
+ ln -sf liblua.so.$version $PKG/usr/lib/liblua.so.$_basever
+ ln -sf liblua.so.$version $PKG/usr/lib/liblua.so
+
+ # pkg-config
+ install -d $PKG/usr/lib/pkgconfig
+ printf '%s\n' \
+ "V=$_basever" \
+ "R=$version" \
+ '' \
+ 'prefix=/usr' \
+ 'exec_prefix=${prefix}' \
+ 'libdir=${exec_prefix}/lib' \
+ 'includedir=${prefix}/include' \
+ '' \
+ 'Name: Lua' \
+ 'Description: An Extensible Extension Language' \
+ 'Version: ${R}' \
+ 'Libs: -L${libdir} -llua -lm -ldl' \
+ 'Cflags: -I${includedir}' \
+ > $PKG/usr/lib/pkgconfig/lua.pc
+ ln -sf lua.pc $PKG/usr/lib/pkgconfig/lua-$_basever.pc
+ ln -sf lua.pc $PKG/usr/lib/pkgconfig/lua${_basever}.pc
+
+ # remove static lib
+ rm -f $PKG/usr/lib/liblua.a
+
+ # remove html docs
+ rm -rf $PKG/usr/share/doc
+}
+
+signify() {
+ untrusted comment: public key
+ RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
+}
+
+# vim: filetype=sh