mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-09 07:28:01 -05:00
35 lines
906 B
Ruby
35 lines
906 B
Ruby
require 'package'
|
|
|
|
class Gnutls < Package
|
|
version '3.5.12'
|
|
source_url 'https://www.gnupg.org/ftp/gcrypt/gnutls/v3.5/gnutls-3.5.12.tar.xz'
|
|
source_sha1 '9f453686bc6b1e6ebc04197158a2bc123c0272df'
|
|
|
|
depends_on 'buildessential' => :build
|
|
depends_on 'zlibpkg' => :build
|
|
depends_on 'libunistring'
|
|
depends_on 'gmp'
|
|
depends_on 'nettle'
|
|
depends_on 'pkgconfig' => :build
|
|
depends_on 'libtasn1'
|
|
depends_on 'trousers'
|
|
depends_on 'p11kit'
|
|
depends_on 'libffi'
|
|
depends_on 'libunbound'
|
|
|
|
def self.build
|
|
system "./configure", "--enable-shared", "--disable-static", "--with-pic",
|
|
"--with-system-priority-file=#{CREW_PREFIX}/etc/gnutls/default-priorities",
|
|
"--with-unbound-root-key-file=#{CREW_PREFIX}/etc/unbound/root.key"
|
|
system "make"
|
|
end
|
|
|
|
def self.install
|
|
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
|
|
end
|
|
|
|
def self.check
|
|
system "make check"
|
|
end
|
|
end
|