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.

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