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

34 lines
993 B
Ruby

require 'package'
class Ddrescue < Package
description 'GNU ddrescue is a data recovery tool.'
homepage 'https://www.gnu.org/software/ddrescue/'
version '1.25'
license 'GPL-2+'
compatibility 'all'
source_url 'https://ftpmirror.gnu.org/ddrescue/ddrescue-1.25.tar.lz'
source_sha256 'ce538ebd26a09f45da67d3ad3f7431932428231ceec7a2d255f716fa231a1063'
binary_compression 'tar.xz'
binary_sha256({
aarch64: 'abc719d94dc994ffc18cbe065e6606282d04f78652cab536897af2773b447d0d',
armv7l: 'abc719d94dc994ffc18cbe065e6606282d04f78652cab536897af2773b447d0d',
i686: 'b53bcbb1219c17db6cc3979e792a847904b0782ac2f045ad26bacfdbc52ed44e',
x86_64: '8fca45af7835153cff43b00cebc1a990b450070f7e7de16887d9ff4b91bcdf0e'
})
def self.build
system "./configure #{CREW_OPTIONS} \
--enable-non-posix"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
def self.check
system 'make', 'check'
end
end