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.

54 lines
1.6 KiB

  1. #
  2. # Copyright (C) 2016 Nikil Mehta <nikil.mehta@gmail.com>
  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:=progress
  9. PKG_VERSION:=0.13.1
  10. PKG_RELEASE:=1
  11. PKG_SOURCE_PROTO:=git
  12. PKG_SOURCE_URL:=https://github.com/Xfennec/progress.git
  13. PKG_SOURCE_VERSION:=f6894b827c638af5cf8c5c622e66491c179ba2eb
  14. PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.xz
  16. PKG_MAINTAINER:=Nikil Mehta <nikil.mehta@gmail.com>
  17. PKG_LICENSE:=GPL-3.0
  18. PKG_LICENSE_FILES:=LICENSE
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/progress
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. TITLE:=Coreutils Progress Viewer (formerly known as 'cv')
  24. URL:=https://github.com/Xfennec/progress
  25. DEPENDS:=+libncursesw
  26. endef
  27. define Package/progress/description
  28. This tool can be described as a Tiny, Dirty, Linux-and-OSX-Only
  29. C command that looks for coreutils basic commands (cp, mv, dd, tar,
  30. gzip/gunzip, cat, etc.) currently running on your system and
  31. displays the percentage of copied data. It can also show estimated
  32. time and throughput, and provide a "top-like" mode (monitoring).
  33. .
  34. It simply scans `/proc` for interesting commands, and then looks at
  35. directories `fd` and `fdinfo` to find opened files and seek positions,
  36. and reports status for the largest file.
  37. .
  38. It's very light, and compatible with virtually any command.
  39. This program was formerly known as 'cv' on github.
  40. endef
  41. define Package/progress/install
  42. $(INSTALL_DIR) $(1)/usr/bin
  43. $(INSTALL_BIN) $(PKG_BUILD_DIR)/progress $(1)/usr/bin/
  44. endef
  45. $(eval $(call BuildPackage,progress))