Commit 224860e0 by orangle

some changes for openresty

parent fc890e0c
2017-03-22 orangleliu <orangleliu@gmai.com>
* remove luarocks reckspec
* add a new makefile
* add a new readme
2014-11-03 vinoca <vinoca@vinoca.org>
* qrencode.c:
* fixed a bug when initialize value.
......
......@@ -8,6 +8,7 @@ and commercial purposes at absolutely no cost.
===============================================================================
Copyright (C) 2014-2015 www.vinoca.org, vinoca.
Copyright (C) 2017 orangleliu.info, orangleliu.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
......
# qrencode: qrencode is a wrapper of libqrencode with libpng for lua.
qrencode
==========
## qrencode is a wrapper of libqrencode with libpng for OpenResty(nginx_lua).
qrencode is a wrapper of [libqrencode](http://fukuchi.org/works/qrencode/) with libpng for lua.
## Install
qrencode is dependent on [libqrencode](http://fukuchi.org/works/qrencode/)
qrencode is dependent on [libqrencode](http://fukuchi.org/works/qrencode/)
and [libpng](http://www.libpng.org/pub/png/libpng.html), so make sure these are installed
before compile it.
......@@ -38,17 +41,8 @@ print(qr {
background="3FAF6F"
}
)
```
when pass a table, "text" is required and other is optional.
## Author
vinoca <http://www.vinoca.org/>
## Copyright and license
Code and documentation copyright 2014-2015 vinoca. Code released under the MIT license.
Docs released under Creative commons.
package = "qrencode"
version = "1.0.2-1"
source = {
url = "qr.tar.gz",
file = "qr.tar.gz"
}
description = {
summary = "qrencode is a wrapper of libqrencode with libpng for lua",
detailed = [[
qrencode is a wrapper of libqrencode with libpng for lua.
]],
license = "MIT/X11",
homepage = "http://fukuchi.org/works/qrencode/"
}
dependencies = {
"lua >= 5.1"
}
build = {
type = "builtin",
modules = {
qrencode = {
sources = { "qrencode.c" },
libraries = { "png", "qrencode" },
libdirs = {"/usr/local/lib"}
}
},
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment