1
0
Fork 0
frozenports/textproc/jpeg/SCHEMATIC

27 lines
955 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"
license="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"
mkdir -p "$TAMANDUA_STAGE_DIR/usr/lib/lua"
install -Dm0755 $name.so "$TAMANDUA_STAGE_DIR/usr/lib/lua/$name.so"
install -Dm0644 re.lua "$TAMANDUA_STAGE_DIR/usr/share/lua/re.lua"
}