Commit 913e9a1b authored by Ed Reel's avatar Ed Reel Committed by GitHub

Update composer from 2.0.9 to 2.0.11 (#5343)

parent acc03df9
......@@ -3,10 +3,10 @@ require 'package'
class Composer < Package
description 'Dependency Manager for PHP'
homepage 'https://getcomposer.org/'
version '2.0.9'
version '2.0.11'
compatibility 'all'
source_url "https://github.com/composer/composer/archive/#{version}.tar.gz"
source_sha256 '2334cbd4236c7a30afc871cb045a19e4941b2f9bdecb943180d10b3a040d1e8b'
source_sha256 '025d332242b696ec5d10dcc4d9ad9460321d9740b09e967849017f3e67d3fcb2'
depends_on 'php74' unless File.exists? "#{CREW_PREFIX}/bin/php"
depends_on 'xdg_base'
......@@ -23,7 +23,7 @@ class Composer < Package
def self.install
system "curl -Ls -o composer https://github.com/composer/composer/releases/download/#{version}/composer.phar"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('composer') ) == '8e91344a5ca2fc0fb583c50f195a1f36918908561c4ea3d6f01a4ef01c3b8560'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('composer') ) == 'd6eee0d4637f4bd82bdae098fceda300dcb3ec35bf502604fbe7510933b8f952'
system "install -Dm755 composer #{CREW_DEST_PREFIX}/bin/composer"
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