Makefile 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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.12
  10. PKG_RELEASE=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  12. PKG_SOURCE_URL:=https://dev.yorhel.nl/download
  13. PKG_MD5SUM:=7365ac46c420bc511621216b1747984f
  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:=https://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))