[intltool] Fix depedency

Add 'wget' for downloading required patch
This commit is contained in:
lovedheart
2018-02-07 21:52:27 +01:00
committed by GitHub
parent f764e0f5ba
commit 59a2e1833a

View File

@@ -9,8 +9,9 @@ class Intltool < Package
depends_on 'libtool'
depends_on 'perl_xml_parser'
depends_on 'patch' => 'build'
depends_on 'patch' => :build
depends_on 'wget' => :build
def self.patch
system "wget https://raw.githubusercontent.com/Alexpux/MSYS2-packages/master/intltool/perl-5.22-compatibility.patch"
abort 'Checksum mismatch. :/ Try again.'.lightred unless Digest::SHA256.hexdigest( File.read('perl-5.22-compatibility.patch') ) == '9c6527072aada6e3cb9aceb6e07cfdf51d58839a2beb650168da0601a85ebda3'