From 0325ccc1cd97324fd28968e722e8a4072cd0c685 Mon Sep 17 00:00:00 2001 From: oak Date: Tue, 23 Jan 2024 19:44:05 +0100 Subject: [PATCH] add lpeg --- textproc/jpeg/SCHEMATIC | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 textproc/jpeg/SCHEMATIC diff --git a/textproc/jpeg/SCHEMATIC b/textproc/jpeg/SCHEMATIC new file mode 100644 index 0000000..1605bd6 --- /dev/null +++ b/textproc/jpeg/SCHEMATIC @@ -0,0 +1,26 @@ +#!/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" +} +