noddos: Noddos v0.5.0 with mDNS / DNS-SD support
[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_NAME)-$(PKG_VERSION).tar.xz
15 PKG_SOURCE_PROTO:=git
16 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
17 PKG_SOURCE_URL:=https://github.com/amrhassan/json4lua.git
18 PKG_SOURCE_VERSION:=$(PKG_VERSION)
19
20 PKG_MAINTAINER:=Amr Hassan <amr.hassan@gmail.com>
21 PKG_LICENSE=MIT
22
23 LUA_MODULE_PATH:=/usr/lib/lua
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/json4lua
28 SUBMENU:=Lua
29 SECTION:=lang
30 CATEGORY:=Languages
31 TITLE:=json4lua
32 URL:=https://github.com/amrhassan/json4lua
33 DEPENDS:=+lua +luasocket
34 endef
35
36 define Package/json4lua/description
37 JSON and JSONRPC for Lua
38 endef
39
40 define Build/Configure
41 endef
42
43 define Build/Compile
44 endef
45
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
50 endef
51
52 $(eval $(call BuildPackage,json4lua))