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_NAME
)-$(PKG_VERSION
).
tar.xz
16 PKG_SOURCE_SUBDIR
:=$(PKG_NAME
)-$(PKG_VERSION
)
17 PKG_SOURCE_URL
:=https
://github.com
/amrhassan
/json4lua.git
18 PKG_SOURCE_VERSION
:=$(PKG_VERSION
)
20 PKG_MAINTAINER
:=Amr Hassan
<amr.hassan@gmail.com
>
23 LUA_MODULE_PATH
:=/usr
/lib
/lua
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/json4lua
32 URL
:=https
://github.com
/amrhassan
/json4lua
33 DEPENDS
:=+lua
+luasocket
36 define Package
/json4lua
/description
37 JSON and JSONRPC for Lua
40 define Build
/Configure
46 define Package
/json4lua
/install
47 $(INSTALL_DIR
) $(1)/$(LUA_MODULE_PATH
)/json
48 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/json
/json.lua
$(1)/$(LUA_MODULE_PATH
)/json.lua
49 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/json
/rpc.lua
$(1)/$(LUA_MODULE_PATH
)/json
/rpc.lua
52 $(eval
$(call BuildPackage
,json4lua
))