Commit 92d579e9 authored by Ed Reel's avatar Ed Reel Committed by GitHub

Update composer from 2.0.7-2 to 2.0.8 (#4746)

parent 34d823bc
...@@ -3,10 +3,10 @@ require 'package' ...@@ -3,10 +3,10 @@ require 'package'
class Composer < Package class Composer < Package
description 'Dependency Manager for PHP' description 'Dependency Manager for PHP'
homepage 'https://getcomposer.org/' homepage 'https://getcomposer.org/'
version '2.0.7-2' version '2.0.8'
compatibility 'all' compatibility 'all'
source_url 'https://github.com/composer/composer/archive/2.0.7.tar.gz' source_url 'https://github.com/composer/composer/archive/2.0.8.tar.gz'
source_sha256 '204215dccc01fea015de5c8506100a078c821fe31afb3eee5aa93c5841f83f4d' source_sha256 '009f1d8ee3d5050a78b3732a947d4a10c2718dfbb83da52c3fcf71ff2d7dd465'
depends_on 'php74' unless File.exists? "#{CREW_PREFIX}/bin/php" depends_on 'php74' unless File.exists? "#{CREW_PREFIX}/bin/php"
depends_on 'xdg_base' depends_on 'xdg_base'
...@@ -22,8 +22,8 @@ class Composer < Package ...@@ -22,8 +22,8 @@ class Composer < Package
end end
def self.install def self.install
system "curl -Ls -o composer https://github.com/composer/composer/releases/download/2.0.7/composer.phar" system 'curl -Ls -o composer https://github.com/composer/composer/releases/download/2.0.8/composer.phar'
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('composer') ) == '0a060e8caf1d5cde55c4562fd68369b08cf231b8fd30da9c8f994b111557ebe9' abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('composer') ) == '2021f0d52b446e0efe3c548cc058ab5671fa38cdbcf814e7911c7e9d71d61538'
system "install -Dm755 composer #{CREW_DEST_PREFIX}/bin/composer" system "install -Dm755 composer #{CREW_DEST_PREFIX}/bin/composer"
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