Files
haikuports/net-misc/aria2/aria2-1.33.1.recipe
2017-11-11 12:27:39 +01:00

71 lines
1.8 KiB
Bash

SUMMARY="A download utility with segmented downloading and BitTorrent support"
DESCRIPTION="
aria2 is a utility for downloading files. The supported protocols are \
HTTP(S), FTP, BitTorrent, and Metalink. aria2 can download a file from \
multiple sources/protocols and tries to utilize your maximum download \
bandwidth. It supports downloading a file from HTTP(S)/FTP and \
BitTorrent at the same time, while the data downloaded from \
HTTP(S)/FTP is uploaded to the BitTorrent swarm. Using Metalink's \
chunk checksums, aria2 automatically validates chunks of data while \
downloading a file like BitTorrent."
HOMEPAGE="http://aria2.sourceforge.net"
COPYRIGHT="2006-2014 Tatsuhiro Tsujikawa"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://github.com/tatsuhiro-t/aria2/releases/download/release-$portVersion/aria2-$portVersion.tar.xz"
CHECKSUM_SHA256="2539e4844f55a1f1f5c46ad42744335266053a69162e964d9a2d80a362c75e1b"
PATCHES="aria2-$portVersion.patchset"
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
SECONDARY_ARCHITECTURES="?x86"
PROVIDES="
aria2$secondaryArchSuffix = $portVersion compat >= 1
cmd:aria2c
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libiconv$secondaryArchSuffix
lib:libintl$secondaryArchSuffix
lib:libssl$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
devel:libiconv$secondaryArchSuffix
devel:libssl$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:aclocal
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:gettext
cmd:find
"
BUILD()
{
autoreconf -fi
CPPFLAGS="-D_BSD_SOURCE" runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
}
TEST()
{
make tests
}