lede-packages-rs

git clone git://archive.git.mtrnord.blog/MTRNord/lede-packages-rs.git
Log | Files | Refs | README | LICENSE

Makefile (1167B)


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