Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rockspec and build on 5.2 #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ar.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ static int ar_version(lua_State *L) {

//////////////////////////////////////////////////////////////////////
LUALIB_API int luaopen_archive(lua_State *L) {
static luaL_reg fns[] = {
static luaL_Reg fns[] = {
{ "version", ar_version },
{ NULL, NULL }
};
Expand Down
4 changes: 2 additions & 2 deletions ar_entry.c
Original file line number Diff line number Diff line change
Expand Up @@ -430,13 +430,13 @@ static int ar_entry_pathname(lua_State *L) {

//////////////////////////////////////////////////////////////////////
int ar_entry_init(lua_State *L) {
static luaL_reg fns[] = {
static luaL_Reg fns[] = {
{ "entry", ar_entry },
{ "_entry_ref_count", ar_ref_count },
{ NULL, NULL }
};
// So far there are no methods on the entry objects.
static luaL_reg m_fns[] = {
static luaL_Reg m_fns[] = {
{ "fflags", ar_entry_fflags },
{ "dev", ar_entry_dev },
{ "ino", ar_entry_ino },
Expand Down
4 changes: 2 additions & 2 deletions ar_read.c
Original file line number Diff line number Diff line change
Expand Up @@ -317,12 +317,12 @@ static int ar_read_data(lua_State *L) {
// of the stack, and the archive{read} metatable is registered.
//////////////////////////////////////////////////////////////////////
int ar_read_init(lua_State *L) {
static luaL_reg fns[] = {
static luaL_Reg fns[] = {
{ "read", ar_read },
{ "_read_ref_count", ar_ref_count },
{ NULL, NULL }
};
static luaL_reg m_fns[] = {
static luaL_Reg m_fns[] = {
{ "next_header", ar_read_next_header },
{ "headers", ar_read_headers },
{ "data", ar_read_data },
Expand Down
4 changes: 2 additions & 2 deletions ar_write.c
Original file line number Diff line number Diff line change
Expand Up @@ -319,12 +319,12 @@ static int ar_write_data(lua_State *L) {
// of the stack, and the archive{write} metatable is registered.
//////////////////////////////////////////////////////////////////////
int ar_write_init(lua_State *L) {
static luaL_reg fns[] = {
static luaL_Reg fns[] = {
{ "write", ar_write },
{ "_write_ref_count", ar_ref_count },
{ NULL, NULL }
};
static luaL_reg m_fns[] = {
static luaL_Reg m_fns[] = {
{ "header", ar_write_header },
{ "data", ar_write_data },
{ "close", ar_write_destroy },
Expand Down
29 changes: 29 additions & 0 deletions lua-archive-git-1.rockspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/usr/bin/env lua

package = 'lua-archive'
version = 'git-1'
source = {
url = 'git://github.com/brimworks/lua-archive'
}

description = {
summary = "libarchive integration for Lua",
detailed = [[
lua-archive is a light wrapper for the libarchive library so
all archive file types supported by libarchive can be processed
in Lua.
]],
homepage = "https://github.com/brimworks/lua-archive/",
license = "MIT"
}
dependencies = {
"lua >= 5.1"
}

build = {
type = "cmake",
variables = {
INSTALL_CMOD = "$(LIBDIR)",
CMAKE_BUILD_TYPE = "$(CMAKE_BUILD_TYPE)",
}
}