From f42a0e48b1cd5c5105d75ae6a91617b82bc9e68f Mon Sep 17 00:00:00 2001 From: Alexey Melnichuk Date: Mon, 15 Jun 2015 12:17:52 +0400 Subject: [PATCH] Prepare release and bump version numbers to 0.3.2 --- README.md | 1 + appveyor.yml | 2 +- rockspecs/lua-curl-0.3.2-1.rockspec | 74 +++++++++++++++++++++++++++++ 3 files changed, 76 insertions(+), 1 deletion(-) create mode 100644 rockspecs/lua-curl-0.3.2-1.rockspec diff --git a/README.md b/README.md index 6cd3b53..c1ebb24 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # Lua binding to [libcurl](http://curl.haxx.se/libcurl) [![Build Status](https://travis-ci.org/Lua-cURL/Lua-cURLv3.svg?branch=master)](https://travis-ci.org/Lua-cURL/Lua-cURLv3) +[![Build status](https://ci.appveyor.com/api/projects/status/oxiuv2u04ob391k0?svg=true)](https://ci.appveyor.com/project/moteus/lua-curlv3) [![Coverage Status](https://coveralls.io/repos/Lua-cURL/Lua-cURLv3/badge.png?branch=master)](https://coveralls.io/r/Lua-cURL/Lua-cURLv3?branch=master) [![Licence](http://img.shields.io/badge/Licence-MIT-brightgreen.svg)](LICENSE) diff --git a/appveyor.yml b/appveyor.yml index a7ec4c9..8a65403 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -39,7 +39,7 @@ before_build: build_script: - set LUA_CURL_VER=scm-0 - - if "%APPVEYOR_REPO_TAG%" == "true" set set LUA_CURL_VER=%APPVEYOR_REPO_TAG_NAME:~1%-1 + - if "%APPVEYOR_REPO_TAG%" == "true" set LUA_CURL_VER=%APPVEYOR_REPO_TAG_NAME:~1%-1 - echo "Making lua-curl-%LUA_CURL_VER% ..." - luarocks make rockspecs/lua-curl-%LUA_CURL_VER%.rockspec diff --git a/rockspecs/lua-curl-0.3.2-1.rockspec b/rockspecs/lua-curl-0.3.2-1.rockspec new file mode 100644 index 0000000..28b69b9 --- /dev/null +++ b/rockspecs/lua-curl-0.3.2-1.rockspec @@ -0,0 +1,74 @@ +package = "Lua-cURL" +version = "0.3.2-1" + +source = { + url = "https://github.com/Lua-cURL/Lua-cURLv3/archive/v0.3.2.zip", + dir = "Lua-cURLv3-0.3.2", +} + +description = { + summary = "Lua binding to libcurl", + detailed = [[ + ]], + homepage = "https://github.com/Lua-cURL", + license = "MIT/X11" +} + +dependencies = { + "lua >= 5.1, < 5.4" +} + +external_dependencies = { + platforms = { + windows = { + CURL = { + header = "curl/curl.h", + library = "libcurl", + } + }; + unix = { + CURL = { + header = "curl/curl.h", + -- library = "curl", + } + }; + } +} + +build = { + copy_directories = {'doc', 'examples'}, + + type = "builtin", + + platforms = { + windows = { modules = { + lcurl = { + libraries = {"libcurl", "ws2_32"}, + } + }}, + unix = { modules = { + lcurl = { + libraries = {"curl"}, + } + }} + }, + + modules = { + ["cURL" ] = "src/lua/cURL.lua", + ["cURL.safe" ] = "src/lua/cURL/safe.lua", + ["cURL.utils" ] = "src/lua/cURL/utils.lua", + ["cURL.impl.cURL" ] = "src/lua/cURL/impl/cURL.lua", + + lcurl = { + sources = { + "src/l52util.c", "src/lceasy.c", "src/lcerror.c", + "src/lchttppost.c", "src/lcurl.c", "src/lcutils.c", + "src/lcmulti.c", "src/lcshare.c", + }, + incdirs = { "$(CURL_INCDIR)" }, + libdirs = { "$(CURL_LIBDIR)" } + }, + } +} + +