mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -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)
31 lines
1.0 KiB
Ruby
31 lines
1.0 KiB
Ruby
require 'package'
|
|
|
|
class Gzsize < Package
|
|
description 'Print the uncompressed size of a GZipped file.'
|
|
homepage 'https://bfontaine.github.io/gzsize/'
|
|
version '0.1.1'
|
|
license 'MIT'
|
|
compatibility 'all'
|
|
source_url 'https://github.com/bfontaine/gzsize/archive/0.1.1.tar.gz'
|
|
source_sha256 'ffb9cc1e5ed10443b1bcf2f711787bc7f69eee27ed83b48f2ccf9d80e39554dd'
|
|
binary_compression 'tar.xz'
|
|
|
|
binary_sha256({
|
|
aarch64: 'd4a24b086e172b771b389d5ce421877e5c3763dc66731cbbfa3bfe2fc40b66c6',
|
|
armv7l: 'd4a24b086e172b771b389d5ce421877e5c3763dc66731cbbfa3bfe2fc40b66c6',
|
|
i686: 'e8bbc0b2342a40b5c6cb231d61425a78e2804df614bd34bfe37ffc0cb2659c84',
|
|
x86_64: '5da9324de5a8799dad4cc5126033eefbed40aeb5c2e5616aede325010f500b91'
|
|
})
|
|
|
|
def self.build
|
|
system 'make'
|
|
end
|
|
|
|
def self.install
|
|
system 'mkdir', '-p', "#{CREW_DEST_PREFIX}/bin"
|
|
system 'mkdir', '-p', "#{CREW_DEST_PREFIX}/man/man1"
|
|
FileUtils.cp 'gzsize', "#{CREW_DEST_PREFIX}/bin/gzsize"
|
|
FileUtils.cp 'man/gzsize.1', "#{CREW_DEST_PREFIX}/man/man1/gzsize.1"
|
|
end
|
|
end
|