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.

36 lines
931 B

  1. include $(TOPDIR)/rules.mk
  2. PKG_NAME:=uhubctl
  3. PKG_VERSION:=2.3.0
  4. PKG_RELEASE:=1
  5. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  6. PKG_SOURCE_URL:=https://codeload.github.com/mvp/uhubctl/tar.gz/v$(PKG_VERSION)?
  7. PKG_HASH:=714f733592d3cb6ba8efc84fbc03b1beed2323918ff33aef01cdb956755be7b7
  8. PKG_LICENSE:=GPL-2.0-only
  9. PKG_LICENSE_FILES:=COPYING LICENSE
  10. PKG_MAINTAINER:=Steven Honson <steven@honson.id.au>
  11. include $(INCLUDE_DIR)/package.mk
  12. define Package/uhubctl
  13. SECTION:=utils
  14. CATEGORY:=Utilities
  15. TITLE:=USB hub per-port power control
  16. URL:=https://github.com/mvp/uhubctl
  17. DEPENDS:=+libusb-1.0
  18. endef
  19. define Package/uhubctl/description
  20. uhubctl is a utility that allows you to control USB power on USB hubs that
  21. implement per-port or ganged power switching.
  22. endef
  23. define Package/uhubctl/install
  24. $(INSTALL_DIR) $(1)/usr/sbin
  25. $(INSTALL_BIN) $(PKG_BUILD_DIR)/uhubctl $(1)/usr/sbin/
  26. endef
  27. $(eval $(call BuildPackage,uhubctl))