Update curl to 7.52.1

Add source compile methods
parent d2661c66
require 'package'
class Curl < Package
version '7.32.0'
binary_url ({
aarch64: 'https://dl.dropboxusercontent.com/s/vvs612glzxrnjva/curl-7.32.0-chromeos-armv7l.tar.xz',
armv7l: 'https://dl.dropboxusercontent.com/s/vvs612glzxrnjva/curl-7.32.0-chromeos-armv7l.tar.xz',
i686: 'https://dl.dropboxusercontent.com/s/h3x2iiy5ibi97vr/curl-7.32.0-chromeos-i686.tar.gz?token_hash=AAETu-MnNyBTCHQbkh4O817QbNK3wRLbAP_gQhjgNyFGtw&dl=1',
x86_64: 'https://dl.dropboxusercontent.com/s/u2hmmd6wfz25qnn/curl-7.32.0-chromeos-x86_64.tar.gz?token_hash=AAGHjx6ATIsDW-Xi4pNUbCMknfWUa6GGQbAquWDkH1xzgg&dl=1',
})
binary_sha1 ({
aarch64: '5d974555b12b54ec47f044dc1cfe7a8ed31bb7e7',
armv7l: '5d974555b12b54ec47f044dc1cfe7a8ed31bb7e7',
i686: 'af3abbae663884ed367c5b6b467ebb310052f53f',
x86_64: '94766f554b195583040e31ce8e85846d8271ac11',
})
version '7.52.1'
source_url 'https://curl.haxx.se/download/curl-7.52.1.tar.bz2'
source_sha1 'aa9f2300096d806c68c7ba8c50771853d1b43eb4'
depends_on 'openssl' => :build
depends_on 'zlibpkg' => :build
depends_on 'libssh2'
depends_on 'groff' => :build
def self.build
system "./configure", "--disable-static"
system "make"
end
def self.install
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
end
def self.check
system "make test"
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