# $Id: PKGBUILD 103183 2013-12-28 20:42:34Z bpiotrowski $ # Maintainer: Bartłomiej Piotrowski # Contributor: Thomas Dziedzic < gostrc at gmail > # Contributor: Angel Velasquez # Contributor: Alexander Fehr # Contributor: Daniel J Griffiths pkgname=aria2 pkgver=1.18.2 pkgrel=1 pkgdesc='Download utility that supports HTTP(S), FTP, BitTorrent, and Metalink' arch=('i686' 'x86_64') url='http://aria2.sourceforge.net/' license=('GPL') depends=('gnutls' 'libxml2' 'sqlite' 'c-ares' 'ca-certificates') checkdepends=('cppunit') source=(http://downloads.sourceforge.net/aria2/aria2-$pkgver.tar.xz) sha256sums=('b4c99eea9e11d265ed90ab685571f7328a20f5c5a438da93ecdba0959170f460') build() { cd $pkgname-$pkgver ./configure \ --prefix=/usr \ --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt make } check() { cd $pkgname-$pkgver make check } package() { cd $pkgname-$pkgver make DESTDIR="$pkgdir" install # add bash completion 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 }