mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-07 22:54:11 -05:00
* Rename CREW_OPTIONS to CREW_CONFIGURE_OPTIONS * Rename build_extras and install_extras to configure_build_extras and configure_install_extras
39 lines
1.3 KiB
Ruby
39 lines
1.3 KiB
Ruby
require 'package'
|
|
|
|
class Aria2 < Package
|
|
description 'aria2 is a lightweight multi-protocol & multi-source, cross platform download utility operated in command-line. It supports HTTP/HTTPS, FTP, SFTP, BitTorrent and Metalink.'
|
|
homepage 'https://aria2.github.io/'
|
|
version '1.36.0'
|
|
license 'GPL-2+-with-openssl-exception'
|
|
compatibility 'all'
|
|
source_url 'https://github.com/aria2/aria2.git'
|
|
git_hashtag "release-#{version}"
|
|
binary_compression 'tar.zst'
|
|
|
|
binary_sha256({
|
|
aarch64: '2958e59e53018affc425e266259281492100376d3572876dae8261487a09c8bf',
|
|
armv7l: '2958e59e53018affc425e266259281492100376d3572876dae8261487a09c8bf',
|
|
i686: '8bc8d1defce3f5dae8ebb335023001b38ba024a76a6f4b3666ce68f499f4dcec',
|
|
x86_64: 'd2740069111350977cede71df7e89189bbd701820d7dd627089dd25cc7927004'
|
|
})
|
|
|
|
depends_on 'c_ares'
|
|
depends_on 'ca_certificates'
|
|
depends_on 'libgcrypt'
|
|
depends_on 'cppunit' => :build
|
|
|
|
def self.build
|
|
system 'autoreconf -fiv'
|
|
system "./configure #{CREW_CONFIGURE_OPTIONS} \
|
|
--with-libnettle \
|
|
--with-libgcrypt \
|
|
--without-libssh2 \
|
|
--with-ca-bundle=#{CREW_PREFIX}/etc/ssl/certs/ca-certificates.crt"
|
|
system 'make'
|
|
end
|
|
|
|
def self.install
|
|
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
|
|
end
|
|
end
|