desktop/aria2/PKGBUILD

38 lines
1.0 KiB
Bash
Raw Normal View History

pkgname=aria2
2015-07-07 21:29:14 +08:00
pkgver=1.19.0
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")
2015-07-07 21:29:14 +08:00
sha256sums=('e2ea59fc2351951a50408561a43fb4d7f0afeab5b606f0cdbfe2be745575a476')
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
}
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"
}