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.

42 lines
1.1 KiB

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=lua-libmodbus
  3. PKG_VERSION:=0.4.2
  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:=90aff3a2cfe7f91f167ad4ea00f55c2aa86cf2aef93d022e3b2cf906a1791254
  9. PKG_SOURCE_VERSION:=v$(PKG_VERSION)
  10. PKG_MAINTAINER:=Karl Palsson <karlp@etactica.com>
  11. PKG_LICENSE:=MIT
  12. PKG_BUILD_DIR:=$(BUILD_DIR)/lua-libmodbus-$(PKG_VERSION)
  13. include $(INCLUDE_DIR)/package.mk
  14. define Package/lua-libmodbus
  15. SUBMENU:=Lua
  16. SECTION:=lang
  17. CATEGORY:=Languages
  18. TITLE:=lua-libmodbus
  19. URL:=https://github.com/etactica/lua-libmodbus
  20. DEPENDS:=+liblua +libmodbus
  21. endef
  22. define Package/lua-libmodbus/description
  23. lua-libmodbus is a binding to libmodbus,
  24. see also http://www.libmodbus.org
  25. endef
  26. define Build/Configure
  27. endef
  28. define Package/lua-libmodbus/install
  29. $(INSTALL_DIR) $(1)/usr/lib/lua
  30. $(INSTALL_BIN) $(PKG_BUILD_DIR)/libmodbus.so $(1)/usr/lib/lua
  31. endef
  32. $(eval $(call BuildPackage,lua-libmodbus))