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.

51 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.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. PKGARCH:=all
  26. endef
  27. define Package/json4lua/description
  28. JSON and JSONRPC for Lua
  29. endef
  30. define Build/Configure
  31. endef
  32. define Build/Compile
  33. endef
  34. define Package/json4lua/install
  35. $(INSTALL_DIR) $(1)/$(LUA_MODULE_PATH)/json
  36. $(INSTALL_DATA) $(PKG_BUILD_DIR)/json/json.lua $(1)/$(LUA_MODULE_PATH)/json.lua
  37. $(INSTALL_DATA) $(PKG_BUILD_DIR)/json/rpc.lua $(1)/$(LUA_MODULE_PATH)/json/rpc.lua
  38. endef
  39. $(eval $(call BuildPackage,json4lua))