Files
chromebrew/packages/bmon.rb
Maximilian Downey Twiss de24923ee8 Add Rubocop CI (#7083)
* Rename IgnoredPatterns to AllowedPatterns.

* Exclude docopt.rb (not our code) from Rubocop

* Disable Style/RedundantReturn

* Disable Style/MutableConstant

* Disable Style/NumericLiterals

* Set Layout/IndentationStyle to spaces

* Temporarily disable various cops.

* Add Rubocop CI via Octocop

* Lint tree with rubocop -A -c .rubocop.yml

Co-authored-by: Satadru Pramanik <satadru@gmail.com>
2022-08-22 13:31:25 -04:00

26 lines
683 B
Ruby

require 'package'
class Bmon < Package
description 'bmon is a commandline bandwidth monitor and rate estimator.'
homepage 'https://www.infradead.org/~tgr/bmon/'
version '4.0-1'
license 'BSD-2 and MIT'
compatibility 'all'
source_url 'https://github.com/tgraf/bmon/releases/download/v4.0/bmon-4.0.tar.gz'
source_sha256 '02fdc312b8ceeb5786b28bf905f54328f414040ff42f45c83007f24b76cc9f7a'
depends_on 'libnl3'
def self.build
system 'autoreconf -fiv'
system "./configure #{CREW_OPTIONS} \
--without-ncurses \
--with-ncursesw"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end