Commit d088f48c authored by Ed Reel's avatar Ed Reel

Update wp_cli from 1.4.1 to 2.3.0

Exclude wp_cli.rb from needs_binaries.sh
parent 6fa1cbab
...@@ -3,31 +3,18 @@ require 'package' ...@@ -3,31 +3,18 @@ require 'package'
class Wp_cli < Package class Wp_cli < Package
description 'The command line interface for WordPress' description 'The command line interface for WordPress'
homepage 'https://wp-cli.org/' homepage 'https://wp-cli.org/'
version '1.4.1' version '2.3.0'
source_url 'https://raw.githubusercontent.com/wp-cli/wp-cli/release-1-4-1/VERSION' source_url 'https://raw.githubusercontent.com/wp-cli/wp-cli/v2.3.0/VERSION'
source_sha256 '7d072b48526b023950e4c48db01e8c273554a6401119f5691e7589ba9bc65d9d' source_sha256 'a42caf4a54bbbe27aa45b6efbc6356c5e299b19763e728b6cdb7201b02ebbe36'
binary_url ({
aarch64: 'https://dl.bintray.com/chromebrew/chromebrew/wp_cli-1.4.1-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.bintray.com/chromebrew/chromebrew/wp_cli-1.4.1-chromeos-armv7l.tar.xz',
i686: 'https://dl.bintray.com/chromebrew/chromebrew/wp_cli-1.4.1-chromeos-i686.tar.xz',
x86_64: 'https://dl.bintray.com/chromebrew/chromebrew/wp_cli-1.4.1-chromeos-x86_64.tar.xz',
})
binary_sha256 ({
aarch64: '50fa957eda866cdc311e49c83a172c64e745ac0b0a85a2e1dd78d7c9a6ee7e0b',
armv7l: '50fa957eda866cdc311e49c83a172c64e745ac0b0a85a2e1dd78d7c9a6ee7e0b',
i686: '6f4c0a3db8806ab2209e30de7ec43b8aa325ef1d5875cd66bc3831bbe0bbb119',
x86_64: 'caa9a556ef4070dc74509f4d0f1b87620e4ce19263c8c85cf5c3b84e059dc84d',
})
depends_on 'php7' unless File.exists? "#{CREW_PREFIX}/bin/php" depends_on 'php7' unless File.exists? "#{CREW_PREFIX}/bin/php"
def self.build def self.build
system 'wget https://github.com/wp-cli/wp-cli/releases/download/v1.4.1/wp-cli-1.4.1.phar' system "wget https://github.com/wp-cli/wp-cli/releases/download/v#{version}/wp-cli-#{version}.phar"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('wp-cli-1.4.1.phar') ) == '325924cf161856f9478f2a154572698ecb5d1054e620843b9c43a7baf4e5ce3b' abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read("wp-cli-#{version}.phar") ) == '3c5edf945846f650846b973a22645823c7f5e00b0e393f921397d26ee11f3770'
end end
def self.install def self.install
system "install -Dm755 wp-cli-1.4.1.phar #{CREW_DEST_PREFIX}/bin/wp" system "install -Dm755 wp-cli-#{version}.phar #{CREW_DEST_PREFIX}/bin/wp"
end end
end end
...@@ -13,7 +13,7 @@ exclusions+=' perl_io_socket_ssl.rb perl_locale_gettext.rb perl_locale_messages. ...@@ -13,7 +13,7 @@ exclusions+=' perl_io_socket_ssl.rb perl_locale_gettext.rb perl_locale_messages.
exclusions+=' perl_term_ansicolor.rb perl_text_charwidth.rb perl_text_unidecode.rb perl_text_wrapi18n.rb perl_time_hires.rb' exclusions+=' perl_term_ansicolor.rb perl_text_charwidth.rb perl_text_unidecode.rb perl_text_wrapi18n.rb perl_time_hires.rb'
exclusions+=' perl_unicode_eastasianwidth.rb perl_xml_parser.rb perl_xml_sax_parserfactory.rb perl_xml_simple.rb pipes_sh.rb' exclusions+=' perl_unicode_eastasianwidth.rb perl_xml_parser.rb perl_xml_sax_parserfactory.rb perl_xml_simple.rb pipes_sh.rb'
exclusions+=' pipesx_sh.rb pngcheck.rb qtcreator.rb sl.rb spark.rb stack.rb sublime_merge.rb sublime_text.rb thefuck.rb tinycore.rb' exclusions+=' pipesx_sh.rb pngcheck.rb qtcreator.rb sl.rb spark.rb stack.rb sublime_merge.rb sublime_text.rb thefuck.rb tinycore.rb'
exclusions+=' tkdiff.rb txt2regex.rb uwsgi.rb v2ray.rb xdg_base.rb yarn.rb' exclusions+=' tkdiff.rb txt2regex.rb uwsgi.rb v2ray.rb wp_cli.rb xdg_base.rb yarn.rb'
if [[ "${arch}" == 'aarch64' || "${arch}" == 'armv7l' ]]; then if [[ "${arch}" == 'aarch64' || "${arch}" == 'armv7l' ]]; then
exclusions+=' az.rb cf.rb clisp.rb dropbox.rb fakeroot_ng.rb freebasic.rb miniconda3.rb misctools.rb oci.rb weston.rb wkhtmltox.rb' exclusions+=' az.rb cf.rb clisp.rb dropbox.rb fakeroot_ng.rb freebasic.rb miniconda3.rb misctools.rb oci.rb weston.rb wkhtmltox.rb'
exclusions+=' xorg_intel_driver.rb xorg_vmmouse_driver.rb' exclusions+=' xorg_intel_driver.rb xorg_vmmouse_driver.rb'
......
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