upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / aria2 / repos / community-x86_64 / PKGBUILD
blob6fa893004e1faf430f9567cfced431721ce2427f
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: BartÅ‚omiej Piotrowski <bpiotrowski@archlinux.org>
3 # Contributor: Thomas Dziedzic < gostrc at gmail >
4 # Contributor: Angel Velasquez <angvp@archlinux.org>
5 # Contributor: Alexander Fehr <pizzapunk gmail com>
6 # Contributor: Daniel J Griffiths <ghost1227@archlinux.us>
8 pkgname=aria2
9 pkgver=1.36.0
10 pkgrel=1
11 pkgdesc='Download utility that supports HTTP(S), FTP, BitTorrent, and Metalink'
12 arch=('x86_64')
13 url='http://aria2.sourceforge.net/'
14 license=('GPL')
15 depends=('gnutls' 'libxml2' 'sqlite' 'c-ares' 'ca-certificates' 'libssh2')
16 checkdepends=('cppunit')
17 source=("https://github.com/tatsuhiro-t/aria2/releases/download/release-$pkgver/aria2-$pkgver.tar.xz")
18 sha512sums=('8203dbb75274455a78c50dd4f894e631de6931ac889f26896dceed78ec38c98cdbcf07e164744f308f2bfffeae1016beec1bfdbe8cad7f3280d11376aa0c2542')
20 build() {
21   cd $pkgname-$pkgver
23   ./configure \
24     --prefix=/usr \
25     --enable-libaria2 \
26     --with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
28   make
31 check() {
32   cd $pkgname-$pkgver
33   # https://github.com/aria2/aria2/issues/1476
34   # Upstream states "I don't see any issues with aria2 code."
35   make check || echo "Ignoring test failures"
38 package() {
39   cd $pkgname-$pkgver
40   make DESTDIR="$pkgdir" install
42   # add bash completion
43   install -d "$pkgdir"/usr/share/bash-completion/completions
44   install -m644 "$pkgdir"/usr/share/doc/aria2/bash_completion/aria2c \
45     "$pkgdir"/usr/share/bash-completion/completions
46   rm -rf "$pkgdir"/usr/share/doc/aria2/bash_completion