Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (22 sloc) 689 Bytes
#!/bin/bash
depends_on openssl ## for HTTPS support
if ! cc_checkflags -x c++ -std=c++11; then
log "Formula $FORMULA needs C++ compiler that support for C++11 standard"
log "Try installing newer version of gcc -- norm install gcc-7.1"
exit 1
fi
fetch_source https://github.com/tatsuhiro-t/aria2/releases/download/release-1.34.0/aria2-1.34.0.tar.xz 7a804bc7b0788c90f2c62e9eb2249da96d84569b
CONFFLAGS=(
--without-libz
--without-libxml2
--without-sqlite3
--without-libexpat
--without-gnutls
--without-libnettle
--without-libgmp
--without-libssh2
--without-libcares
)
do_unpack
sed -i.bak 's|make_unique|std::make_unique|g' "$SRCDIR"/src/bignum.h
do_compile "${CONFFLAGS[@]}"