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.

40 lines
1016 B

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=lua-libmodbus
  3. PKG_VERSION:=0.7
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=lua-libmodbus-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_SUBDIR:=lua-libmodbus-$(PKG_VERSION)
  7. PKG_SOURCE_URL:=https://codeload.github.com/etactica/lua-libmodbus/tar.gz/v$(PKG_VERSION)?
  8. PKG_HASH:=70369f4c4e36421095bf00dcee36c633b4284eaa79bcfdfd230bfefb27acefda
  9. PKG_SOURCE_VERSION:=v$(PKG_VERSION)
  10. PKG_MAINTAINER:=Karl Palsson <karlp@etactica.com>
  11. PKG_LICENSE:=MIT
  12. include $(INCLUDE_DIR)/package.mk
  13. define Package/lua-libmodbus
  14. SUBMENU:=Lua
  15. SECTION:=lang
  16. CATEGORY:=Languages
  17. TITLE:=lua-libmodbus
  18. URL:=https://github.com/etactica/lua-libmodbus
  19. DEPENDS:=+liblua +libmodbus
  20. endef
  21. define Package/lua-libmodbus/description
  22. lua-libmodbus is a binding to libmodbus,
  23. see also http://www.libmodbus.org
  24. endef
  25. define Build/Configure
  26. endef
  27. define Package/lua-libmodbus/install
  28. $(INSTALL_DIR) $(1)/usr/lib/lua
  29. $(INSTALL_BIN) $(PKG_BUILD_DIR)/libmodbus.so $(1)/usr/lib/lua
  30. endef
  31. $(eval $(call BuildPackage,lua-libmodbus))