mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
Add ncdu (1.12) package
ncdu (NCurses Disk Usage) is a curses-based version of the well-known 'du', and provides a fast way to see what directories are using your disk space. Tested as working properly on Samsung XE50013-K01US.
This commit is contained in:
18
packages/ncdu.rb
Normal file
18
packages/ncdu.rb
Normal file
@@ -0,0 +1,18 @@
|
||||
require 'package'
|
||||
|
||||
class Ncdu < Package
|
||||
version '1.12'
|
||||
source_url 'https://dev.yorhel.nl/download/ncdu-1.12.tar.gz'
|
||||
source_sha1 'b79b1c44784f334dca74d89a49f49274f14cfeef'
|
||||
|
||||
depends_on "ncurses_so"
|
||||
|
||||
def self.build
|
||||
system "./configure --prefix=/usr/local CPPFLAGS=-I/usr/local/include/ncurses"
|
||||
system "make"
|
||||
end
|
||||
|
||||
def self.install
|
||||
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user