desktop/aria2/PKGBUILD
2014-09-20 18:36:47 +00:00

48 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.8
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=('ed08fb94dbf4713251a7a9f9eab3b63d480061cb94048720d8fe372f73d83863')
build() {
cd ${pkgname}-${pkgver}
./configure \
--prefix=/usr \
--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
make
}
check() {
cd ${pkgname}-${pkgver}
make check
#Testsuite summary for aria2 1.18.8
#
# TOTAL: 1 / PASS: 1 / SKIP: 0
# XFAIL: 0 / FAIL: 0 / XPASS: 0
# ERROR: 0
}
package() {
cd ${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"
}