termux-packages/packages/aria2/build.sh

29 lines
932 B
Bash
Raw Normal View History

2016-09-03 23:19:10 +02:00
TERMUX_PKG_HOMEPAGE=https://aria2.github.io
2017-03-19 00:19:09 +01:00
TERMUX_PKG_DESCRIPTION="Download utility supporting HTTP/HTTPS, FTP, BitTorrent and Metalink"
2019-01-20 22:39:59 +01:00
TERMUX_PKG_LICENSE="GPL-2.0"
2019-10-06 10:19:16 +02:00
TERMUX_PKG_VERSION=1.35.0
TERMUX_PKG_REVISION=2
2016-09-03 23:19:10 +02:00
TERMUX_PKG_SRCURL=https://github.com/aria2/aria2/releases/download/release-${TERMUX_PKG_VERSION}/aria2-${TERMUX_PKG_VERSION}.tar.xz
2019-10-06 10:19:16 +02:00
TERMUX_PKG_SHA256=1e2b7fd08d6af228856e51c07173cfcf987528f1ac97e04c5af4a47642617dfd
2019-06-19 20:12:38 +02:00
TERMUX_PKG_DEPENDS="libc++, c-ares, openssl, libxml2, zlib"
2015-06-13 01:03:31 +02:00
# sqlite3 is only used for loading cookies from firefox or chrome:
2017-03-19 00:19:09 +01:00
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
--with-openssl
--without-gnutls
--without-libuv
--without-sqlite3
2018-09-12 06:47:50 +02:00
--without-libssh2
2017-03-19 00:19:09 +01:00
ac_cv_func_basename=yes
ac_cv_func_getaddrinfo=yes
ac_cv_func_gettimeofday=yes
ac_cv_func_sleep=yes
ac_cv_func_usleep=yes
ac_cv_search_getaddrinfo=no
"
termux_step_pre_configure() {
if [ "$TERMUX_ARCH" = "arm" ]; then
CXXFLAGS="${CFLAGS/-Oz/-Os}"
fi
}