Commit 67d6b14a authored by Gangstead's avatar Gangstead Committed by GitHub

Merge pull request #1654 from uberhacker/add-cros_resize-package

Add cros_resize package
parents bcdfccee cc1d50c3
require 'package'
class Cros_resize < Package
description 'A partition resizing tool for Chrome OS devices.'
homepage 'https://github.com/ethanmad/chromeos-resize'
version '6b01b7'
source_url 'https://raw.githubusercontent.com/ethanmad/chromeos-resize/6b01b71f649dbf77b2e6ac932e8ad868e8272250/cros-resize.sh'
source_sha256 '747ef80f29a94500304f23595c5edfa46edd4b4fa5a40d399b474984004e9ffe'
binary_url ({
})
binary_sha256 ({
})
def self.install
system 'wget https://raw.githubusercontent.com/ethanmad/chromeos-resize/6b01b71f649dbf77b2e6ac932e8ad868e8272250/cros-resize.sh'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('cros-resize.sh') ) == '747ef80f29a94500304f23595c5edfa46edd4b4fa5a40d399b474984004e9ffe'
system "install -Dm755 cros-resize.sh #{CREW_DEST_PREFIX}/bin/cros-resize"
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment