Files
chromebrew/packages/pv.rb
Ed Reel df801b93f5 Update binary_url to github in all packages (#5675)
Add gh.sh script to tools

Add .gitignore

Update download_binary.sh

Update README.md
2021-04-21 15:39:00 -04:00

34 lines
1.3 KiB
Ruby

require 'package'
class Pv < Package
description 'pv - Pipe Viewer - is a terminal-based tool for monitoring the progress of data through a pipeline.'
homepage 'http://www.ivarch.com/programs/pv.shtml'
version '1.6.6'
license 'Artistic-2'
compatibility 'all'
source_url 'http://www.ivarch.com/programs/sources/pv-1.6.6.tar.gz'
source_sha256 '94defb4183ae07c44219ba298d43c4991d6e203c29f74393d72ecad3b090508a'
binary_url ({
aarch64: 'https://github.com/chromebrew/binaries/raw/main/armv7l/pv-1.6.6-chromeos-armv7l.tar.xz',
armv7l: 'https://github.com/chromebrew/binaries/raw/main/armv7l/pv-1.6.6-chromeos-armv7l.tar.xz',
i686: 'https://github.com/chromebrew/binaries/raw/main/i686/pv-1.6.6-chromeos-i686.tar.xz',
x86_64: 'https://github.com/chromebrew/binaries/raw/main/x86_64/pv-1.6.6-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: 'da5302deb6b9d72962e10ace08c96a5c76a4b48186f58333c1413e2526231157',
armv7l: 'da5302deb6b9d72962e10ace08c96a5c76a4b48186f58333c1413e2526231157',
i686: 'a740e89e34a69a7fef3c4d9a3fbd74b7d714dc314ede00c00da6a425015931f9',
x86_64: 'b248c250d1c87c4e7c1c82ca1918eb4a44ca93585128a58caea074d44e7b4187',
})
def self.build
system './configure'
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end