# Maintainer: Adrián Chaves Fernández (Gallaecio) pkgname=aria2 pkgver=1.16.5 pkgrel=1 pkgdesc='Download utility that supports HTTP(S), FTP, BitTorrent, and Metalink.' arch=('x86_64') url='http://aria2.sourceforge.net/' license=('GPL3') depends=('ca-certificates' 'c-ares' 'gnutls' 'libxml2' 'sqlite3') categories=('network') source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.xz") md5sums=('dbc9562de2fe5ef4a98e6d47eb784df1') build() { cd $srcdir/$pkgname-$pkgver ./configure \ --prefix=/usr \ --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt make } package() { cd $srcdir/$pkgname-$pkgver make DESTDIR=$pkgdir install # add bash completion (aria2 automatically installs to a temporary target directory) install -d ${pkgdir}/usr/share/bash-completion/completions install -m644 ${pkgdir}/usr/share/doc/aria2/bash_completion/aria2c \ ${pkgdir}/usr/share/bash-completion/completions rm -rf ${pkgdir}/usr/share/doc/aria2/bash_completion }