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. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=temperusb
  7. PKG_VERSION:=2.0
  8. PKG_RELEASE:=1
  9. PKG_CONFIG_DEPENDS:=libusb
  10. PKG_BUILD_DIR:=$(BUILD_DIR)/temperv14-$(PKG_VERSION)
  11. PKG_SOURCE_URL:=https://codeload.github.com/Arduous/temperv14/tar.gz/v${PKG_VERSION}?
  12. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  13. PKG_HASH:=a8f4ef76a2def5a2e3ec351828a042ce8f7a0963eaa6d9d8ce0c8313e2b54526
  14. PKG_LICENSE:=BSD-1-Clause
  15. PKG_LICENSE_FILES:=temperv14.c
  16. PKG_MAINTAINER := Samuel Progin <samuel.progin@gmail.com>
  17. include $(INCLUDE_DIR)/package.mk
  18. define Package/temperusb
  19. SECTION:=utils
  20. CATEGORY:=Utilities
  21. DEPENDS:=+libusb-1.0
  22. TITLE:=USB Thermometer RDing TEMPer v1.4 reader
  23. endef
  24. define Package/temperusb/description
  25. RDing TEMPer v1.4 USB thermometer are cheap devices that can be sourced everywhere on
  26. the Internet. This package allow to operate them from user space.
  27. endef
  28. define Package/temperusb/install
  29. $(INSTALL_DIR) $(1)/usr/bin
  30. $(INSTALL_BIN) $(PKG_BUILD_DIR)/temperv14 $(1)/usr/bin
  31. endef
  32. $(eval $(call BuildPackage,temperusb))