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.

48 lines
1.0 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_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://github.com/amrhassan/$(PKG_NAME)/archive/
  13. PKG_MAINTAINER:=Amr Hassan <amr.hassan@gmail.com>
  14. PKG_LICENSE=MIT
  15. LUA_MODULE_PATH:=/usr/lib/lua
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/json4lua
  18. SUBMENU:=Lua
  19. SECTION:=lang
  20. CATEGORY:=Languages
  21. TITLE:=json4lua
  22. URL:=https://github.com/amrhassan/json4lua
  23. DEPENDS:=+lua +luasocket
  24. endef
  25. define Package/json4lua/description
  26. JSON and JSONRPC for Lua
  27. endef
  28. define Build/Configure
  29. endef
  30. define Build/Compile
  31. endef
  32. define Package/json4lua/install
  33. $(INSTALL_DIR) $(1)/$(LUA_MODULE_PATH)/json
  34. $(INSTALL_DATA) $(PKG_BUILD_DIR)/json/json.lua $(1)/$(LUA_MODULE_PATH)/json.lua
  35. $(INSTALL_DATA) $(PKG_BUILD_DIR)/json/rpc.lua $(1)/$(LUA_MODULE_PATH)/json/rpc.lua
  36. endef
  37. $(eval $(call BuildPackage,json4lua))