39 lines
1.1 KiB
Bash
39 lines
1.1 KiB
Bash
# Maintainer: Jesus E. <heckyel@riseup.net>
|
|
|
|
pkgname=aria2
|
|
pkgver=1.37.0
|
|
pkgrel=1
|
|
pkgdesc="Download utility that supports HTTP(S), FTP, BitTorrent, and Metalink"
|
|
arch=('i686' 'x86_64')
|
|
url='https://aria2.github.io/'
|
|
license=('GPL-2')
|
|
depends=('gnutls' 'libxml2' 'sqlite' 'c-ares' 'ca-certificates' 'libssh2')
|
|
checkdepends=('cppunit')
|
|
source=("https://github.com/tatsuhiro-t/aria2/releases/download/release-${pkgver}/${pkgname}-${pkgver}.tar.xz")
|
|
sha512sums=('df3b8b4de8fa8d78f203ea00c059e43585e18a229009f202e42e6a9e59db67d09df0dbba8a016e99ed73c82f59e4f8b26f86c2288afdbb96a6807cbe2c56e6b3')
|
|
|
|
build() {
|
|
cd $pkgname-$pkgver
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--enable-libaria2 \
|
|
--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
# add bash completion
|
|
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
|
|
|
|
# license
|
|
install -Dm644 COPYING -t "${pkgdir}/usr/share/licenses/$pkgname"
|
|
}
|