Files
chromebrew/packages/phive.rb
Maximilian Downey Twiss eb14c41653 Remove compatibility from packages with incompatible dependencies (#9458)
* Remove i686 compatibility from packages with dependencies incompatible with i686

* Remove armv7l compatibility from packages with dependencies incompatible with arvm7l

* Abort builds/installs if the package has incompatible dependencies
2024-03-11 13:09:12 -04:00

21 lines
660 B
Ruby

require 'package'
class Phive < Package
description 'The PHAR Installation and Verification Environment (PHIVE)'
homepage 'https://phar.io/'
version '0.15.2'
license 'BSD'
compatibility 'x86_64 aarch64 armv7l'
source_url "https://github.com/phar-io/phive/releases/download/#{version}/phive-#{version}.phar"
source_sha256 '2bb076753ec5d672f5e2f96a97a0fe7e8e9ec24a439eed00fd29ef942c7905f9'
depends_on 'php81' unless File.exist? "#{CREW_PREFIX}/bin/php"
no_compile_needed
def self.install
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.install "phive-#{version}.phar", "#{CREW_DEST_PREFIX}/bin/phive", mode: 0o755
end
end