desktop/aria2/PKGBUILD

32 lines
1010 B
Bash
Raw Normal View History

pkgname=aria2
2016-02-19 01:44:40 +08:00
pkgver=1.20.0
2016-02-20 07:13:58 +08:00
pkgrel=2
pkgdesc='Download utility that supports HTTP(S), FTP, BitTorrent, and Metalink.'
arch=('x86_64')
url='http://aria2.sourceforge.net/'
license=('GPL3')
2015-10-04 20:18:36 +08:00
depends=('gnutls' 'libxml2' 'sqlite3' 'c-ares' 'ca-certificates' 'libssh2')
categories=('network')
2015-10-04 20:18:36 +08:00
source=("https://github.com/tatsuhiro-t/aria2/releases/download/release-${pkgver}/${pkgname}-${pkgver}.tar.xz")
2016-02-19 01:44:40 +08:00
sha1sums=('a8c8d473279b6435657de316ff013e56acefe1a0')
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
}
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"
}