Files
chromebrew/packages/compressdoc.rb
Maximilian Downey Twiss f6dc1d8d4e Derive binary_url in package.rb (#7082)
* 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)
2024-01-25 11:03:31 -05:00

30 lines
960 B
Ruby

require 'package'
class Compressdoc < Package
description 'Compress all man pages in a hierarchy and update symlinks. Supports a variety of compression algorithms.'
homepage 'https://github.com/saltedcoffii/compressdoc/'
version '20221119'
license 'MIT'
compatibility 'all'
source_url 'https://github.com/saltedcoffii/compressdoc.git'
git_hashtag "v#{version}"
binary_compression 'tar.zst'
binary_sha256({
aarch64: '880427162c3107c72346778eeaee0d965321bd3f0cea87b6e496cc541aa76f5a',
armv7l: '880427162c3107c72346778eeaee0d965321bd3f0cea87b6e496cc541aa76f5a',
i686: '3712fc941fa77066d2ce378e2bafe67555ac5da2827a6f32338bd48b8a3bde8d',
x86_64: '67cc750a7c59c35eaea3ddea7ff5c103d61c2c6f154b35416b0f85c7b3319674'
})
depends_on 'help2man' => :build
def self.build
system 'make'
end
def self.install
system "make PREFIX=#{CREW_PREFIX} MANDIR=#{CREW_MAN_PREFIX} DESTDIR=#{CREW_DEST_DIR} install"
end
end