Files
chromebrew/packages/sg3_utils.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
985 B
Ruby

require 'package'
class Sg3_utils < Package
description 'The sg3_utils package contains utilities that send SCSI commands to devices.'
homepage 'http://sg.danny.cz/sg/sg3_utils.html'
version '1.44'
license 'BSD-2 Clause'
compatibility 'all'
source_url 'http://sg.danny.cz/sg/p/sg3_utils-1.44.tar.xz'
source_sha256 'ca94ac106510742cd8ff5ead4a7e5c89d410653291401daf4632d2bef2a35b05'
binary_compression 'tar.xz'
binary_sha256({
aarch64: 'ae79701d44c714506fc6e96380cfe9bc401f8207bd3cef75ad6d22af62a947ab',
armv7l: 'ae79701d44c714506fc6e96380cfe9bc401f8207bd3cef75ad6d22af62a947ab',
i686: '1862071fbf2c6e4b89b596c9f643534311b2906b038fb25502db2f95b546c26e',
x86_64: 'bf5157d3ffb69c69cc71d4e6df55706cbc1cd31632159fe8fa2ca0298377a184'
})
def self.build
system './configure', "--prefix=#{CREW_PREFIX}", "--libdir=#{CREW_LIB_PREFIX}"
system 'make'
end
def self.install
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end
end