attached is a simple rockspec that can build "limath" with luarocks's builtin
As demonstration I set up a github repository with travis and appveyor builds
that are showing that this rockspecs builds fine and the tests are running OK
for Linux, Mac OS, Windows MSVC & Windows MINGW using luarocks 2.4.4 and 3.0.2,
for Lua versions 5.1, 5.2, 5.3, luajit 2.0 & 2.1, see
> Will it work for both LuaRocks 2 and 3? Does it need to?
IMHO it's better also to support LuaRocks 2 since it is still used in many Linux
distros, therefore I removed description.labels and rockspec_format = "3.0" to
remain backwards compatible.
On 28.09.18 19:00, Luiz Henrique de Figueiredo wrote:
>> attached is a simple rockspec that can build "limath" with luarocks's builtin
> Thanks. My Makefiles already have a "build" target, hence the build
> entry in the template I've posted. This was suggested by Hisham, but
> I'm not sure I did it right.
I have not much experience using luarocks's make build type, especially this
could be problematic under windows if there is no GNU Make installed. IMHO it's
much easier to have multi platform support using luarocks builtin build type
especially for simple C projects.
>> I removed description.labels and rockspec_format = "3.0" to remain backwards
> Removing description.labels and rockspec_format = "3.0" is all that is
> needed to support LuaRocks 2?
as you can see from the automatic build & tests: yes it builds with luarocks 2 &