mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-07 22:54:11 -05:00
* Add binary_compression value to each package * Remove binary_url values and arrays * Handle packages with empty binary_sha256 arrays (either missing binaries or not compiled by us)
40 lines
1.3 KiB
Ruby
40 lines
1.3 KiB
Ruby
require 'package'
|
|
|
|
class Mtr < Package
|
|
description "mtr combines the functionality of the 'traceroute' and 'ping' programs in a single network diagnostic tool."
|
|
homepage 'https://www.bitwizard.nl/mtr/'
|
|
version '0.93'
|
|
license 'GPL-2'
|
|
compatibility 'all'
|
|
source_url 'ftp://ftp.bitwizard.nl/mtr/mtr-0.93.tar.gz'
|
|
source_sha256 '229c673d637bd7dbb96471623785a47e85da0b1944978200c949994c1e6af10d'
|
|
binary_compression 'tar.xz'
|
|
|
|
binary_sha256({
|
|
aarch64: '10827000fd244c4a001077b013ed89d9ee156297764a59b763938e2e261d1965',
|
|
armv7l: '10827000fd244c4a001077b013ed89d9ee156297764a59b763938e2e261d1965',
|
|
i686: '6d42197636f5bc79bd63e879a4e50fa4d13c72e552d8393ac1893b2ae10bf226',
|
|
x86_64: '7ec1e4e20d17fa583089f1ce681c4dd373fdf9683eb36a7d14ede883a2fca0fc'
|
|
})
|
|
|
|
def self.build
|
|
system './configure',
|
|
'--without-gtk',
|
|
"--prefix=#{CREW_PREFIX}",
|
|
"--libdir=#{CREW_LIB_PREFIX}",
|
|
"LDFLAGS=-Wl,-rpath,#{CREW_LIB_PREFIX}"
|
|
system 'make'
|
|
end
|
|
|
|
def self.install
|
|
system 'sudo', 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
|
|
system 'sudo', 'chown', '-R', "#{USER}:#{USER}", CREW_DEST_DIR.to_s
|
|
end
|
|
|
|
def self.postinstall
|
|
puts
|
|
puts "To run, execute 'sudo mtr <domain>'".lightblue
|
|
puts
|
|
end
|
|
end
|