mirror of
https://gitdl.cn/https://github.com/chakralinux/desktop.git
synced 2025-02-15 07:29:03 +08:00
34 lines
1.0 KiB
Bash
34 lines
1.0 KiB
Bash
# Maintainer: Adrián Chaves Fernández (Gallaecio) <adriyetichaves gmail.com>
|
|
|
|
pkgname=aria2
|
|
pkgver=1.16.5
|
|
pkgrel=1
|
|
pkgdesc='Download utility that supports HTTP(S), FTP, BitTorrent, and Metalink.'
|
|
arch=('x86_64')
|
|
url='http://aria2.sourceforge.net/'
|
|
license=('GPL3')
|
|
depends=('ca-certificates' 'c-ares' 'gnutls' 'libxml2' 'sqlite3')
|
|
categories=('network')
|
|
source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.xz")
|
|
md5sums=('dbc9562de2fe5ef4a98e6d47eb784df1')
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
./configure \
|
|
--prefix=/usr \
|
|
--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
|
|
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$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
|
|
}
|