Files
chromebrew/packages/xmlto.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

29 lines
889 B
Ruby

require 'package'
class Xmlto < Package
description 'A tool for converting XML files to various formats.'
homepage 'https://pagure.io/xmlto'
version '0.0.28'
license 'GPL-2'
compatibility 'all'
source_url 'https://releases.pagure.org/xmlto/xmlto-0.0.28.tar.bz2'
source_sha256 '1130df3a7957eb9f6f0d29e4aa1c75732a7dfb6d639be013859b5c7ec5421276'
binary_compression 'tar.xz'
binary_sha256({
aarch64: '8f03c0544caa110a2af91afdf9b5a0b88b5e6ee2799cf4710cbe200b8bcf58a3',
armv7l: '8f03c0544caa110a2af91afdf9b5a0b88b5e6ee2799cf4710cbe200b8bcf58a3',
i686: 'd5f57827acde8c9977786a26790af5e517d95acd543ddb26efda8c7877d36bcf',
x86_64: 'f4ce1d91e46a06d54877ff22ec0b0bb1da69c3e8ee5962536c722a0abe018fd9'
})
def self.build
system './configure'
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end