aboutsummaryrefslogtreecommitdiffstats
path: root/main/aria2/APKBUILD
blob: b536fa35e1404749c96b18608ec0a443db075a97 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# 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.21.0
pkgrel=0
pkgdesc="Download utility for HTTP(S), (S)FTP, Bittorrent, and Metalink"
url="http://aria2.sourceforge.net"
arch="all"
license="GPL2+"
depends="ca-certificates"
depends_dev=""
makedepends="gnutls-dev expat-dev sqlite-dev c-ares-dev"
install=""
subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp"
source="https://github.com/tatsuhiro-t/$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 \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

bashcomp() {
	depends=""
	pkgdesc="Bash completions for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
	arch="noarch"

	install -Dm644 "$_builddir"/doc/bash_completion/aria2c \
		"$subpkgdir"/usr/share/bash-completion/completions/_aria2c || return 1
}

md5sums="70479675494a9fd619c2317dad438442  aria2-1.21.0.tar.xz"
sha256sums="225c5f2c8acc899e0a802cdf198f82bd0d3282218e80cdce251b1f9ffacf6580  aria2-1.21.0.tar.xz"
sha512sums="2862d82f064de160b64705ee5ae9180e7402859c7c0d9bc5421b1368cebd143e0a0e2e971713cd27f11efbeffe6618e801309ff34b12aeb00060b9de58652251  aria2-1.21.0.tar.xz"