From 576b8770e16e3b188230e247803af474e437883b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=ADaz=20Urbaneja=20V=C3=ADctor=20Diego=20Alejandro?= Date: Mon, 21 Jun 2021 22:46:19 -0400 Subject: [PATCH 1/2] Added support for luarocks --- rockspecs/lua-libsox-scm-0.rockspec | 31 +++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 rockspecs/lua-libsox-scm-0.rockspec diff --git a/rockspecs/lua-libsox-scm-0.rockspec b/rockspecs/lua-libsox-scm-0.rockspec new file mode 100644 index 0000000..21e872b --- /dev/null +++ b/rockspecs/lua-libsox-scm-0.rockspec @@ -0,0 +1,31 @@ +package = "lua-libsox" +version = "scm-0" + +source = { + url = "git://github.com/MasterVitronic/lua-libsox" +} + +description = { + summary = "Lua Binding for libsox", + detailed = [[ + Lua-libsox is a Lua binding library for the Swiss Army knife of sound processing programs (SoX) + ]], + license = "MIT/X11", + homepage = "https://gitlab.com/vitronic/lua-libsox" +} + +dependencies = { + "lua >= 5.1" +} + +build = { + type = "builtin", + copy_directories = { 'examples' }, + modules = { + ["libsox"] = { + sources = { "lua-libsox.c" }, + libraries = { "sox" }, + incdirs = { "$(PWD)" } + } + }, +} From 89b8322fd3148e516509d88f0e54fc5f122b5e06 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?D=C3=ADaz=20Urbaneja=20V=C3=ADctor=20Diego=20Alejandro?= Date: Mon, 21 Jun 2021 22:46:44 -0400 Subject: [PATCH 2/2] installation instructions with luarocks added Update README --- README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/README.md b/README.md index 98d0aeb..ab0e9df 100644 --- a/README.md +++ b/README.md @@ -35,6 +35,18 @@ lua-libsox$ make lua-libsox$ make install # or 'sudo make install' (Ubuntu) ``` +#### installing with luarocks + +```sh + +(local) build and install packages from a local rockspec +lua-libsox$ luarocks build lua-libsox-scm-0.rockspec + +(online) install from the site directly +lua-libsox$ luarocks install lua-libsox + +``` + #### Example ```lua