# HG changeset patch # User Hans-G?nter Theisgen # Date 1677257680 -3600 # Node ID 0aa34f26a92385226e7616f57f6fdfb363c61b7c # Parent b7693f5d4c8171b37adf553e45af993eea8d4558 created recipe for lua5.1-lpeg 1.0.2 diff -r b7693f5d4c81 -r 0aa34f26a923 lua5.1-lpeg/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lua5.1-lpeg/description.txt Fri Feb 24 17:54:40 2023 +0100 @@ -0,0 +1,7 @@ +LPeg is a new pattern-matching library for Lua, +based on Parsing Expression Grammars (PEGs). +This text is a reference manual for the library. +For a more formal treatment of LPeg, +as well as some discussion about its implementation, +see A Text Pattern-Matching Tool based on +Parsing Expression Grammars. diff -r b7693f5d4c81 -r 0aa34f26a923 lua5.1-lpeg/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lua5.1-lpeg/receipt Fri Feb 24 17:54:40 2023 +0100 @@ -0,0 +1,31 @@ +# SliTaz package receipt. + +PACKAGE="lua5.1-lpeg" +VERSION="1.0.2" +CATEGORY="libs" +TAGS="lua" +SHORT_DESC="Pattern-matching library for Lua." +MAINTAINER="maintainer@slitaz.org" +LICENSE="MIT" +WEB_SITE="http://www.inf.puc-rio.br/~roberto/lpeg/" + +SOURCE="lpeg" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="${WEB_SITE}$SOURCE-$VERSION.tar.gz" + +SUGGESTED="lua5.1" +BUILD_DEPENDS="lua5.1-dev" + +# Rules to configure and make the package. +compile_rules() +{ + make LUADIR=/usr/include/lua/5.1 +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/lib/lua/5.1 + cp -a $src/lpeg.so $fs/usr/lib/lua/5.1 + cp -a $src/re.lua $fs/usr/lib/lua/5.1 +}