Files
chromebrew/packages/box.rb
supechicken 7d7e491190 crew: Move checksum checking part to lib/downloader.rb (#6891)
* lib/downloader: Check checksum if provided

* crew: Move checksum part to downloader

* Update `Checksum mismatch` message

* Move the `filename` or statement to a variable

* Bump version

* Make `sha256sum` a required param

* Add SKIP option, update packages that use `downloader`

* Remove extra round bracket

* Fix option order

* Update usage

* libspatialaudio: Check sha256sum with `downloader`, rubyize

* Make retry times configurable

* Correct usage
2022-03-23 02:33:11 -05:00

19 lines
605 B
Ruby

require 'package'
class Box < Package
description 'Fast, zero config application bundler with PHARs.'
homepage 'https://github.com/box-project/box'
version '3.16.0'
license 'MIT'
compatibility 'all'
source_url 'SKIP'
depends_on 'php74' unless File.exist? "#{CREW_PREFIX}/bin/php"
def self.install
downloader 'https://github.com/box-project/box/releases/download/3.16.0/box.phar', 'f508e28f309d7e95a319bdcd5f13dcfbb18eb91cb7a6cac9b69bc7799d78bdf9'
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.install 'box.phar', "#{CREW_DEST_PREFIX}/bin/box", mode: 0o755
end
end