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.gz
15 PKG_SOURCE_URL
:=https
://codeload.github.com
/amrhassan
/json4lua
/tar.gz
/$(PKG_VERSION
)?
16 PKG_HASH
:=2498e5224b024521af7f2de9a2c2af4028cd8da4b724ffd6bd94beede2402cfe
18 PKG_MAINTAINER
:=Amr Hassan
<amr.hassan@gmail.com
>
21 LUA_MODULE_PATH
:=/usr
/lib
/lua
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/json4lua
30 URL
:=https
://github.com
/amrhassan
/json4lua
31 DEPENDS
:=+lua
+luasocket
35 define Package
/json4lua
/description
36 JSON and JSONRPC for Lua
39 define Build
/Configure
45 define Package
/json4lua
/install
46 $(INSTALL_DIR
) $(1)/$(LUA_MODULE_PATH
)/json
47 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/json
/json.lua
$(1)/$(LUA_MODULE_PATH
)/json.lua
48 $(INSTALL_DATA
) $(PKG_BUILD_DIR
)/json
/rpc.lua
$(1)/$(LUA_MODULE_PATH
)/json
/rpc.lua
51 $(eval
$(call BuildPackage
,json4lua
))