blob: 287cdcf2882699d367c4bffd03fe1f34a504d397 (
plain) (
blame)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Contributor: Alice <alicela1n@protonmail.com>
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Alice <alicela1n@protonmail.com>
pkgname=aria2
pkgver=1.37.0
pkgrel=0
pkgdesc="The ultra fast download utility"
url="https://aria2.github.io/"
arch="all"
license="GPL-2.0+"
depends="ca-certificates"
checkdepends="cppunit-dev"
makedepends="openssl-dev sqlite-dev libuv-dev"
install="aria2.pre-install"
pkgusers="aria2"
pkggroups="aria2"
subpackages="$pkgname-dev $pkgname-doc $pkgname-openrc::noarch"
source="https://github.com/aria2/$pkgname/releases/download/release-$pkgver/$pkgname-$pkgver.tar.xz
$pkgname.conf
$pkgname.initd
$pkgname.confd
$pkgname.logrotate
"
build() {
./configure --build=$CBUILD \
--host=$CHOST \
--with-openssl \
--with-sqlite3 \
--with-libuv \
--enable-libaria2 \
--enable-shared \
--disable-static \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info \
--localstatedir=/var \
--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt
make
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
}
openrc() {
default_openrc
pkgdesc="Support for running Aria2 as a daemon using OpenRC"
depends="$pkgname=$pkgver-r$pkgrel"
mkdir -p "$subpkgdir"
install -Dm755 "$srcdir"/$pkgname.initd "$subpkgdir"/etc/init.d/$pkgname
install -Dm644 "$srcdir"/$pkgname.confd "$subpkgdir"/etc/conf.d/$pkgname
install -Dm644 "$srcdir"/$pkgname.logrotate "$subpkgdir"/etc/logrotate.d/$pkgname
install -Dm644 "$srcdir"/$pkgname.conf "$subpkgdir"/etc/$pkgname/$pkgname.conf
install -m750 -o aria2 -g aria2 -d "$subpkgdir"var/lib/$pkgname
install -m700 -o aria2 -g aria2 -d "$subpkgdir"/var/cache/$pkgname
}
sha512sums="df3b8b4de8fa8d78f203ea00c059e43585e18a229009f202e42e6a9e59db67d09df0dbba8a016e99ed73c82f59e4f8b26f86c2288afdbb96a6807cbe2c56e6b3 aria2-1.37.0.tar.xz
dd716f27eae2628bd528fd2842de7881e8f8f00d587b179e832f1639241db5bd8f4e74a5b791ca4de984923654b38a28813a89ad49a864f64534903a46878a60 aria2.conf
c65bef73a519b567ab35558bd60310081f5d4fcb630538666a5b2435f23dc9d741c7bfa6080e4ff46e646e977f4d5e8ba937ce9cdfb55880a3dc0eb1c2ee617a aria2.initd
42d6df2590f6f70fcf42bb4a54cf332737838ffc8f0992df1f3bdc54be8e53aafc2176b10896a1f980f3c09a80131c5f37cff5cc0d59f5c2646cb46250bae05d aria2.confd
2ed9ff7a5fd1801643e4fb3cdd8cb21f0ead60420c87636bb581fe00828a98a5290a0888e49f6a6becb9f39c3c145b1399aa3a9ae452eb10ac2064c0e7bca1f8 aria2.logrotate"
|