# Contributor: Sören Tempel # Contributor: Jeff Bilyk # Maintainer: Natanael Copa pkgname=aria2 pkgver=1.24.0 pkgrel=0 pkgdesc="Download utility for HTTP(S), (S)FTP, Bittorrent, and Metalink" url="http://aria2.sourceforge.net" arch="all" license="GPL2+" depends="ca-certificates" depends_dev="" makedepends="gnutls-dev expat-dev sqlite-dev c-ares-dev" install="" subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp" source="https://github.com/tatsuhiro-t/$pkgname/releases/download/release-$pkgver/$pkgname-$pkgver.tar.xz" _builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --localstatedir=/var \ --disable-nls \ --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } bashcomp() { depends="" pkgdesc="Bash completions for $pkgname" install_if="$pkgname=$pkgver-r$pkgrel bash-completion" arch="noarch" install -Dm644 "$_builddir"/doc/bash_completion/aria2c \ "$subpkgdir"/usr/share/bash-completion/completions/_aria2c || return 1 } md5sums="95a18888c141594a5730ac5afa119a7d aria2-1.24.0.tar.xz" sha256sums="35a496d2704ffb07e0b0dcac16c6d9b2854327967f984218517403d187f7bf37 aria2-1.24.0.tar.xz" sha512sums="3e7f3fc2cd30edb5813b0d0fe6742671000730aa8d7e41e5396ab673912b8492885273de740985517b4a16efccedb1bdffb9bfdc235aa0d5fc31d2b547ae61e7 aria2-1.24.0.tar.xz"