desktop/aria2/PKGBUILD

48 lines
1.3 KiB
Bash
Raw Normal View History

2014-04-01 03:41:55 +08:00
# 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
2014-09-21 02:36:47 +08:00
pkgver=1.18.8
2013-12-04 07:17:07 +08:00
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')
2014-04-01 03:41:55 +08:00
checkdepends=('cppunit')
categories=('network')
2014-09-21 02:36:47 +08:00
source=("http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.xz")
sha256sums=('ed08fb94dbf4713251a7a9f9eab3b63d480061cb94048720d8fe372f73d83863')
build() {
2014-09-21 02:36:47 +08:00
cd ${pkgname}-${pkgver}
./configure \
--prefix=/usr \
--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
make
}
2014-04-01 03:41:55 +08:00
check() {
2014-09-21 02:36:47 +08:00
cd ${pkgname}-${pkgver}
2014-04-01 03:41:55 +08:00
make check
2014-09-21 02:36:47 +08:00
#Testsuite summary for aria2 1.18.8
#
# TOTAL: 1 / PASS: 1 / SKIP: 0
# XFAIL: 0 / FAIL: 0 / XPASS: 0
2014-04-01 03:41:55 +08:00
# ERROR: 0
}
package() {
2014-09-21 02:36:47 +08:00
cd ${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
# add bash completion (aria2 automatically installs to a temporary target directory)
2014-09-21 02:36:47 +08:00
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"
}