desktop/aria2/PKGBUILD

32 lines
1010 B
Bash
Raw Normal View History

pkgname=aria2
2016-05-16 08:16:10 +08:00
pkgver=1.23.0
2016-03-17 16:08:48 +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')
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-05-16 08:16:10 +08:00
sha1sums=('92656a60a65ca35867e0d7e358fbc5c3e3c06efa')
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"
}