# SliTaz package receipt.

PACKED_SIZE="608.0K"
UNPACKED_SIZE="2.0M"
PACKAGE="aria2"
VERSION="1.18.3"
CATEGORY="utilities"
SHORT_DESC="A download utility with resuming and segmented downloading with HTTP/HTTPS/FTP support"
MAINTAINER="devl547@gmail.com"
LICENSE="GPL2"
# WEB_SITE="http://aria2.sourceforge.net/"
WEB_SITE="https://aria2.github.io/"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"

DEPENDS="zlib libxml2 gnutls libgcrypt"
BUILD_DEPENDS="zlib-dev gettext libxml2-dev gnutls-dev pkg-config gmp-dev \
nettle-dev"

# Rules to configure and make the package.
compile_rules()
{
	./configure $CONFIGURE_ARGS \
	--enable-epoll --enable-threads=posix --with-libz \
	--without-sqlite3 --without-openssl &&
	make && make install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr
	cp -a $install/usr/bin $fs/usr
}
