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