You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
1.2 KiB

  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. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=json4lua
  9. PKG_VERSION:=0.9.53
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_MIRROR_HASH:=61a9631784aa5d7dd8adfdfa149f0a45deaa4bf80b117e89722702c612afa081
  13. PKG_SOURCE_PROTO:=git
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_SOURCE_URL:=https://github.com/amrhassan/json4lua.git
  16. PKG_SOURCE_VERSION:=$(PKG_VERSION)
  17. PKG_MAINTAINER:=Amr Hassan <amr.hassan@gmail.com>
  18. PKG_LICENSE=MIT
  19. LUA_MODULE_PATH:=/usr/lib/lua
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/json4lua
  22. SUBMENU:=Lua
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. TITLE:=json4lua
  26. URL:=https://github.com/amrhassan/json4lua
  27. DEPENDS:=+lua +luasocket
  28. endef
  29. define Package/json4lua/description
  30. JSON and JSONRPC for Lua
  31. endef
  32. define Build/Configure
  33. endef
  34. define Build/Compile
  35. endef
  36. define Package/json4lua/install
  37. $(INSTALL_DIR) $(1)/$(LUA_MODULE_PATH)/json
  38. $(INSTALL_DATA) $(PKG_BUILD_DIR)/json/json.lua $(1)/$(LUA_MODULE_PATH)/json.lua
  39. $(INSTALL_DATA) $(PKG_BUILD_DIR)/json/rpc.lua $(1)/$(LUA_MODULE_PATH)/json/rpc.lua
  40. endef
  41. $(eval $(call BuildPackage,json4lua))