commit 2e266c9639b972a0f6daee05414a8dc5f636f1de Author: Tim Biermann <tbier@posteo.de> Date: Sun Nov 27 17:59:19 2022 +0000 lua51-lpeg: initial commit, version 1.0.2 diff --git a/lua51-lpeg/.footprint b/lua51-lpeg/.footprint new file mode 100644 index 000000000..57f533138 --- /dev/null +++ b/lua51-lpeg/.footprint @@ -0,0 +1,5 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/lua/ +drwxr-xr-x root/root usr/lib/lua/5.1/ +-rwxr-xr-x root/root usr/lib/lua/5.1/lpeg.so diff --git a/lua51-lpeg/.signature b/lua51-lpeg/.signature new file mode 100644 index 000000000..8d661ed31 --- /dev/null +++ b/lua51-lpeg/.signature @@ -0,0 +1,5 @@ +untrusted comment: verify with /etc/ports/contrib.pub +RWSagIOpLGJF30O/3K+0MO/zUvjEfJYN/pbQ2p5yoEi7ukIKXGxIJ3GPPDV91JUBsIYSOKLg2d4Xbger9gHlRM0GIAKki0eaogs= +SHA256 (Pkgfile) = da69800a8fea0fb825939605c0a9523239c6436ead5ede858b2a66ca23052446 +SHA256 (.footprint) = 26861c4e089424db85631315deeef604ac30895637c3d925f8aee53c886f6a08 +SHA256 (lpeg-1.0.2.tar.gz) = 48d66576051b6c78388faad09b70493093264588fcd0f258ddaab1cdd4a15ffe diff --git a/lua51-lpeg/Pkgfile b/lua51-lpeg/Pkgfile new file mode 100644 index 000000000..7eb9936d3 --- /dev/null +++ b/lua51-lpeg/Pkgfile @@ -0,0 +1,21 @@ +# Description: a new pattern-matching library for Lua, based on Parsing Expression Grammars +# URL: http://www.inf.puc-rio.br/~roberto/lpeg/ +# Maintainer: Tim Biermann, tbier at posteo dot de +# Depends on: lua51 + +name=lua51-lpeg +version=1.0.2 +release=1 +source=(http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-$version.tar.gz) + +build() { + cd lpeg-$version + + sed 's/^CFLAGS =/CFLAGS +=/' -i makefile + sed 's/^COPT =/# COPT =/' -i makefile + + make LUADIR=/usr/include/lua5.1 + + install -Dm0755 lpeg.so $PKG/usr/lib/lua/5.1/lpeg.so + install -Dm0644 re.lua "${pkgdir}"/usr/share/lua/5.1/re.lua +}