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.

49 lines
1.1 KiB

  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  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:=ncdu
  9. PKG_VERSION:=1.11
  10. PKG_RELEASE=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=http://dev.yorhel.nl/download
  13. PKG_MD5SUM:=9e44240a5356b029f05f0e70a63c4d12
  14. PKG_INSTALL:=1
  15. PKG_BUILD_PARALLEL:=1
  16. PKG_LICENSE:=MIT
  17. PKG_LICENSE_FILES:=COPYING
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/ncdu
  20. SUBMENU:=Filesystem
  21. SECTION:=utils
  22. CATEGORY:=Utilities
  23. DEPENDS:=+libncurses
  24. TITLE:=ncurses disk usage viewer
  25. MAINTAINER:=Charles Lehner <celehner1@gmail.com>
  26. URL:=http://dev.yorhel.nl/ncdu
  27. endef
  28. define Package/ncdu/description
  29. Ncdu is a ncurses-based du viewer. It provides a fast and easy-to-use
  30. interface through famous du utility. It allows one to browse through the
  31. directories and show percentages of disk usage with ncurses library.
  32. endef
  33. CONFIGURE_ARGS += --with-ncurses
  34. define Package/ncdu/install
  35. $(INSTALL_DIR) $(1)/usr/bin
  36. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/ncdu $(1)/usr/bin/
  37. endef
  38. $(eval $(call BuildPackage,ncdu))