mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
20 lines
587 B
Ruby
20 lines
587 B
Ruby
require 'package'
|
|
|
|
class Box < Package
|
|
description 'Fast, zero config application bundler with PHARs.'
|
|
homepage 'https://github.com/box-project/box'
|
|
version '4.4.0'
|
|
license 'MIT'
|
|
compatibility 'x86_64 aarch64 armv7l'
|
|
source_url 'https://github.com/box-project/box/releases/download/4.4.0/box.phar'
|
|
source_sha256 '5009ae580c4fc92f6a7d22e08d76798610d91f1afc2d0f1b391531cf28e93525'
|
|
|
|
depends_on 'php81' unless File.exist? "#{CREW_PREFIX}/bin/php"
|
|
|
|
no_compile_needed
|
|
|
|
def self.install
|
|
FileUtils.install 'box.phar', "#{CREW_DEST_PREFIX}/bin/box", mode: 0o755
|
|
end
|
|
end
|