desktop/aria2/PKGBUILD
2014-03-31 19:41:55 +00:00

51 lines
1.3 KiB
Bash

# Maintainer: UtG <utg.chakra.linux[at]gmail[dot]com>
# Contributor Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
# Contributor: Neo Kolokotronis <tetris4@gmail.com>
pkgname=aria2
pkgver=1.18.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')
checkdepends=('cppunit')
categories=('network')
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.xz)
sha256sums=('90a15959498673ebe6a964f8f9fe840f4adbb0a1904a9810cd7da6743c0b619b')
build() {
cd $srcdir/$pkgname-$pkgver
./configure \
--prefix=/usr \
--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
make
}
check() {
cd $srcdir/$pkgname-$pkgver
make check
#Testsuite summary for aria2 1.18.5
# TOTAL: 1; PASS: 1; SKIP: 0;
# XFAIL: 0; FAIL: 0; XPASS: 0;
# ERROR: 0
}
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
}