1
0
Fork 0
frozenports/textproc/lpeg/SCHEMATIC

26 lines
974 B
Bash

#!/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"
licenses=("MIT")
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
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"
}