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.

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