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.

63 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2009-2013 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:=lua-copas
  9. PKG_VERSION:=2.0.0
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Dirk Chang <dirk@kooiot.com>
  12. PKG_LICENSE:=MIT
  13. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  14. PKG_MIRROR_HASH:=a47a8b5f6c1cf0d9fff4770a28bf7a3efdd8f37415dde8e02528f3e63f8a7899
  15. PKG_SOURCE_URL:=https://github.com/keplerproject/copas.git
  16. PKG_SOURCE_PROTO:=git
  17. PKG_SOURCE_VERSION:=f39a80add9f7c010ac979297652bbaaea0360a27
  18. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  19. PKG_INSTALL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/lua-copas
  22. SUBMENU:=Lua
  23. SECTION:=lang
  24. CATEGORY:=Languages
  25. TITLE:=Lua-Copas
  26. URL:=https://github.com/keplerproject/copas
  27. DEPENDS:=+lua
  28. endef
  29. define Package/lua-copas/description
  30. Copas is a dispatcher based on coroutines that can be used by TCP/IP servers.
  31. endef
  32. define Build/Configure
  33. endef
  34. define Build/Compile
  35. $(MAKE) -C $(PKG_BUILD_DIR) \
  36. T="$(BUILD_VARIANT)" \
  37. PREFIX="$(PKG_INSTALL_DIR)/usr" \
  38. install
  39. endef
  40. # add make variable overrides here
  41. MAKE_FLAGS +=
  42. define Package/lua-copas/install
  43. $(INSTALL_DIR) $(1)/usr/lib/lua
  44. $(INSTALL_DIR) $(1)/usr/lib/lua/copas
  45. $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/copas.lua $(1)/usr/lib/lua
  46. $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/copas/ftp.lua $(1)/usr/lib/lua/copas
  47. $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/copas/smtp.lua $(1)/usr/lib/lua/copas
  48. $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/copas/http.lua $(1)/usr/lib/lua/copas
  49. $(INSTALL_DATA) $(PKG_BUILD_DIR)/src/copas/limit.lua $(1)/usr/lib/lua/copas
  50. endef
  51. $(eval $(call BuildPackage,lua-copas))