mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-06 22:24:12 -05:00
* Rename CREW_OPTIONS to CREW_CONFIGURE_OPTIONS * Rename build_extras and install_extras to configure_build_extras and configure_install_extras
26 lines
687 B
Ruby
26 lines
687 B
Ruby
require 'package'
|
|
|
|
class Bmon < Package
|
|
description 'bmon is a commandline bandwidth monitor and rate estimator.'
|
|
homepage 'https://github.com/tgraf/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_CONFIGURE_OPTIONS} \
|
|
--without-ncurses \
|
|
--with-ncursesw"
|
|
system 'make'
|
|
end
|
|
|
|
def self.install
|
|
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
|
|
end
|
|
end
|