0
0
Fork 0
haikuports/dev-lua/luarocks/luarocks-2.2.0.recipe

51 lines
963 B
Bash

SUMMARY="A deployment and management system for Lua modules"
DESCRIPTION="LuaRocks allows you to install modules as self-contained \
packages called rocks, which also contain version dependency information."
HOMEPAGE="https://luarocks.org"
COPYRIGHT="2007-2014 Kepler Project"
LICENSE="MIT"
REVISION="5"
SOURCE_URI="https://luarocks.org/releases/luarocks-2.2.0.tar.gz"
CHECKSUM_SHA256="9b1a4ec7b103e2fb90a7ba8589d7e0c8523a3d6d54ac469b0bbc144292b9279c"
SOURCE_DIR="$portVersionedName"
ARCHITECTURES="all"
PROVIDES="
luarocks = $portVersion
cmd:luarocks = $portVersion
cmd:luarocks_admin = $portVersion
"
REQUIRES="
haiku
lua
lib:liblua
"
BUILD_REQUIRES="
haiku_devel
lua_devel
devel:liblua
"
BUILD_PREREQUIRES="
cmd:gcc
cmd:ld
cmd:lua
cmd:luac
cmd:make
cmd:md5sum
cmd:sed
cmd:wget
"
BUILD()
{
./configure --prefix=$prefix --with-lua=$binDir --with-lua-include=$includeDir --with-lua-lib=$libDir
make build
}
INSTALL()
{
make install
}