mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 15:37:56 -05:00
20 lines
551 B
Ruby
20 lines
551 B
Ruby
require 'package'
|
|
|
|
class C_ares < Package
|
|
description 'c-ares is a C library for asynchronous DNS requests (including name resolves).'
|
|
homepage 'https://c-ares.haxx.se/'
|
|
version '1.14.0'
|
|
source_url 'https://c-ares.haxx.se/download/c-ares-1.14.0.tar.gz'
|
|
source_sha256 '45d3c1fd29263ceec2afc8ff9cd06d5f8f889636eb4e80ce3cc7f0eaf7aadc6e'
|
|
|
|
|
|
def self.build
|
|
system "./configure --prefix=#{CREW_PREFIX} --libdir=#{CREW_LIB_PREFIX}"
|
|
system "make"
|
|
end
|
|
|
|
def self.install
|
|
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
|
|
end
|
|
end
|