summaryrefslogtreecommitdiff
path: root/opt/aria2/MAKEPKG
blob: 0a66e45ff1cd2ede43d87da2a0c87e86a9f19ec2 (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
#!/bin/mkpkg
# description: Download utility supporting HTTP(S), FTP, BitTorrent
# url: https://aria2.github.io/

name=aria2
version=1.37.0
release=1
depends=(libressl libxml2 zlib)
source=(https://github.com/aria2/aria2/releases/download/release-$version/$name-$version.tar.xz)

sha256sums=(
    "60a420ad7085eb616cb6e2bdf0a7206d68ff3d37fb5a956dc44242eb2f79b66b"
)

i
patch() {
    cd $name-$version
    sed -i 's|^#endif // D_COMMON_H|#include <iterator>\n&|' src/common.h
}

build() {
    cd $name-$version
    
    ./configure \
        --prefix=/usr \
        --disable-nls \
        --without-gnutls \
        --without-libnettle \
        --without-libgcrypt \
        --with-openssl
    
    make
    make DESTDIR=$PKG install
    
    rm -rf $PKG/usr/share/man/ru
    rm -rf $PKG/usr/share/man/pt
    rm -rf $PKG/usr/share/doc
}

signify() {
    untrusted comment: public key
    RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3
}

# vim: filetype=sh