mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
52 lines
1.4 KiB
Plaintext
52 lines
1.4 KiB
Plaintext
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
|
|
# Contributor: Jeff Bilyk <jbilyk@gmail.com>
|
|
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=aria2
|
|
pkgver=1.34.0
|
|
pkgrel=0
|
|
pkgdesc="Download utility for HTTP(S), (S)FTP, Bittorrent, and Metalink"
|
|
url="https://aria2.github.io/"
|
|
arch="all"
|
|
license="GPL-2.0-or-later"
|
|
depends="ca-certificates"
|
|
makedepends="gnutls-dev expat-dev sqlite-dev c-ares-dev"
|
|
checkdepends="cppunit-dev"
|
|
subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp:noarch"
|
|
source="https://github.com/aria2/$pkgname/releases/download/release-$pkgver/$pkgname-$pkgver.tar.xz"
|
|
builddir="$srcdir/$pkgname-$pkgver"
|
|
|
|
build() {
|
|
cd "$builddir"
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--infodir=/usr/share/info \
|
|
--localstatedir=/var \
|
|
--disable-nls \
|
|
--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "$builddir"
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd "$builddir"
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
bashcomp() {
|
|
pkgdesc="Bash completions for $pkgname"
|
|
install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
|
|
|
|
install -Dm644 "$builddir"/doc/bash_completion/aria2c \
|
|
"$subpkgdir"/usr/share/bash-completion/completions/_aria2c
|
|
}
|
|
|
|
sha512sums="80bc43e242c06acc95030021cb347b4ec230729f3d7e512ca1932941b34ef95c312a34007a226869e5d720839a400e66cdb072ccab5d42228d8cf3d828723dcc aria2-1.34.0.tar.xz"
|