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

33 lines
1.0 KiB
Ruby

require 'package'
class Dfu_util < Package
description 'DFU is intended to download and upload firmware to/from devices connected over USB.'
homepage 'http://dfu-util.gnumonks.org/'
version '0.9'
license 'GPL-2'
compatibility 'all'
source_url 'http://dfu-util.sourceforge.net/releases/dfu-util-0.9.tar.gz'
source_sha256 '36428c6a6cb3088cad5a3592933385253da5f29f2effa61518ee5991ea38f833'
binary_compression 'tar.xz'
binary_sha256({
aarch64: '9f15f808d4e10bce99419bd7330f17af265be7db6b21919497aa1df2b235259a',
armv7l: '9f15f808d4e10bce99419bd7330f17af265be7db6b21919497aa1df2b235259a',
i686: '9a3d7b20e130741f7182f124fac70e458ccf7293848373bfd1808b147062fe63',
x86_64: '0293dd440c43ca3c89f8a83c8127de0a37a1357c6515f2933f94ab1b29b5322d'
})
depends_on 'libusb'
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