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.

43 lines
1.0 KiB

  1. #
  2. # Copyright (C) 2019 Jianhui Zhao
  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-ev
  9. PKG_VERSION:=1.5
  10. PKG_RELEASE:=$(AUTORELEASE)
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://codeload.github.com/brimworks/lua-ev/tar.gz/v$(PKG_VERSION)?
  13. PKG_HASH:=26ac116722a241bf59daf5315ce0ffe751c1babea9a146ffc0a389f1af3facca
  14. PKG_MAINTAINER:=Jianhui Zhao <jianhuizhao329@gmail.com>
  15. PKG_LICENSE:=MIT
  16. PKG_LICENSE_FILES:=LICENSE
  17. include $(INCLUDE_DIR)/package.mk
  18. include $(INCLUDE_DIR)/cmake.mk
  19. define Package/lua-ev
  20. SUBMENU:=Lua
  21. SECTION:=lang
  22. CATEGORY:=Languages
  23. TITLE:=lua-ev
  24. URL:=https://github.com/brimworks/lua-ev
  25. DEPENDS:=+lua +libev
  26. endef
  27. define Package/lua-ev/description
  28. Lua integration with libev.
  29. endef
  30. define Package/lua-ev/install
  31. $(INSTALL_DIR) $(1)/usr/lib/lua
  32. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/share/lua/cmod/ev.so $(1)/usr/lib/lua
  33. endef
  34. $(eval $(call BuildPackage,lua-ev))