2024-01-23 18:44:05 +00:00
|
|
|
#!/bin/sh
|
|
|
|
name="lpeg"
|
|
|
|
short_desc="Parsing Expression Grammars for Lua"
|
|
|
|
desc="LPeg is a new pattern-matching library for Lua, based on Parsing Expression Grammars (PEGs). This text is a reference manual for the library."
|
|
|
|
category="textproc"
|
|
|
|
version="1.1.0"
|
|
|
|
maintainer="oak@petrifiedoak.com"
|
|
|
|
www="https://www.inf.puc-rio.br/~roberto/lpeg/"
|
|
|
|
master_site="https://www.inf.puc-rio.br/~roberto/lpeg/"
|
|
|
|
source_name="$name-$version.tar.gz"
|
|
|
|
license_logic="single"
|
2024-01-24 11:34:00 +00:00
|
|
|
licenses=("MIT")
|
2024-01-23 18:44:05 +00:00
|
|
|
|
|
|
|
build_dependencies=("lang/lua" "lang/gcc" "devel/gmake")
|
|
|
|
run_dependencies=("lang/lua" "system/glibc")
|
|
|
|
|
|
|
|
build_process() {
|
|
|
|
cd "$name-$version" || exit 1
|
|
|
|
sed -i -e 's/env//g' makefile
|
|
|
|
make LUADIR=/usr/include
|
2024-01-23 21:46:34 +00:00
|
|
|
mkdir -p "$TAMANDUA_STAGE_DIR/usr/share/lua/5.4/"
|
|
|
|
mkdir -p "$TAMANDUA_STAGE_DIR/usr/lib/lua/5.4/"
|
|
|
|
install -Dm0755 $name.so "$TAMANDUA_STAGE_DIR/usr/lib/lua/5.4/lpeg.so"
|
|
|
|
install -Dm0644 re.lua "$TAMANDUA_STAGE_DIR/usr/share/lua/5.4/re.lua"
|
2024-01-23 18:44:05 +00:00
|
|
|
}
|