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.

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