Merge pull request #920 from stintel/snmpd_procd
[feed/packages.git] / lang / json4lua / Makefile
1 #
2 # Copyright (C) 2006-2015 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=json4lua
11 PKG_VERSION:=0.9.53
12 PKG_RELEASE:=1
13
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>
17 PKG_LICENSE=MIT
18
19 LUA_MODULE_PATH:=/usr/lib/lua
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/json4lua
24 SUBMENU:=Lua
25 SECTION:=lang
26 CATEGORY:=Languages
27 TITLE:=json4lua
28 URL:=https://github.com/amrhassan/json4lua
29 DEPENDS:=+lua +luasocket
30 endef
31
32 define Package/json4lua/description
33 JSON and JSONRPC for Lua
34 endef
35
36 define Build/Configure
37 endef
38
39 define Build/Compile
40 endef
41
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
46 endef
47
48 $(eval $(call BuildPackage,json4lua))