# SliTaz package receipt.

PACKAGE="aria2"
VERSION="1.13.0"
CATEGORY="utilities"
SHORT_DESC="A download utility with resuming and segmented downloading with HTTP/HTTPS/FTP support"
MAINTAINER="devl547@gmail.com"
TARBALL="$PACKAGE-$VERSION.tar.bz2"
WEB_SITE="http://aria2.sourceforge.net/"
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()
{
	cd $src
	./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
}