desktop/aria2/PKGBUILD
2016-05-16 01:16:10 +01:00

32 lines
1010 B
Bash

pkgname=aria2
pkgver=1.23.0
pkgrel=1
pkgdesc='Download utility that supports HTTP(S), FTP, BitTorrent, and Metalink.'
arch=('x86_64')
url='http://aria2.sourceforge.net/'
license=('GPL3')
depends=('gnutls' 'libxml2' 'sqlite3' 'c-ares' 'ca-certificates' 'libssh2')
categories=('network')
source=("https://github.com/tatsuhiro-t/aria2/releases/download/release-${pkgver}/${pkgname}-${pkgver}.tar.xz")
sha1sums=('92656a60a65ca35867e0d7e358fbc5c3e3c06efa')
build() {
cd ${pkgname}-${pkgver}
./configure \
--prefix=/usr \
--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
make
}
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"
}