2 # Copyright (C) 2006-2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=https
://github.com
/amrhassan
/$(PKG_NAME
)/archive
/
16 PKG_MAINTAINER
:=Amr Hassan
<amr.hassan@gmail.com
>
19 LUA_MODULE_PATH
:=/usr
/lib
/lua
21 include $(INCLUDE_DIR
)/package.mk
23 define Package
/json4lua
28 URL
:=https
://github.com
/amrhassan
/json4lua
29 DEPENDS
:=+lua
+luasocket
32 define Package
/json4lua
/description
33 JSON and JSONRPC for Lua
36 define Build
/Configure
42 define Package
/json4lua
/install
43 $(INSTALL_DIR
) $(1)/$(LUA_MODULE_PATH
)/json
44 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/json
/json.lua
$(1)/$(LUA_MODULE_PATH
)/json.lua
45 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/json
/rpc.lua
$(1)/$(LUA_MODULE_PATH
)/json
/rpc.lua
48 $(eval
$(call BuildPackage
,json4lua
))