#!/bin/sh name="lua" short_desc="Small, compilable scripting language providing easy access to C code" desc="Lua is a programming language originally designed for extending applications, but also frequently used as a general-purpose, stand-alone language. Lua combines simple procedural syntax (similar to Pascal) with powerful data description constructs based on associative arrays and extensible semantics. Lua is dynamically typed, interpreted from bytecodes, and has automatic memory management with garbage collection, making it ideal for configuration, scripting, and rapid prototyping. A fundamental concept in the design of Lua is to provide meta-mechanisms for implementing features, instead of providing a host of features directly in the language. For example, although Lua is not a pure object-oriented language, it does provide meta-mechanisms for implementing classes and inheritance. Lua's meta-mechanisms bring an economy of concepts and keep the language small, while allowing the semantics to be extended in unconventional ways. Extensible semantics is a distinguishing feature of Lua. Lua is implemented as a small library of C functions, written in ANSI C, and compiles unmodified in all known platforms. The implementation goals are simplicity, efficiency, portability, and low embedding cost." category="lang" version="5.4.6" maintainer="ffqq@danwin1210.de" www="https://www.lua.org/" master_site="https://www.lua.org/ftp" source_name="$name-$version.tar.gz" license_logic="single" # accepted values: single, and, or licenses=("MIT") build_dependencies=("devel/gmake" "lang/gcc" "devel/ncurses") run_dependencies=("system/glibc" "devel/ncurses") build_process() { cd $name-$version cp -v $TAMANDUA_FILES_DIR/lua.pc . patch -Np1 -i $TAMANDUA_FILES_DIR/lua-5.4.6-shared_library-1.patch sed "s/install -p/install/" Makefile > _ mv -f _ Makefile sed "s|/usr/local|/usr|g" src/luaconf.h > _ mv -f _ src/luaconf.h make linux make INSTALL_TOP=$TAMANDUA_STAGE_DIR/usr \ INSTALL_MAN=$TAMANDUA_STAGE_DIR/usr/share/man/man1 \ install mkdir -pv $TAMANDUA_STAGE_DIR/usr/share/doc/lua-5.4.6 mkdir -pv $TAMANDUA_STAGE_DIR/usr/lib/pkgconfig cp -v doc/*.{html,css,gif,png} $TAMANDUA_STAGE_DIR/usr/share/doc/lua-5.4.6 cp -v lua.pc $TAMANDUA_STAGE_DIR/usr/lib/pkgconfig/lua.pc }