summaryrefslogtreecommitdiff
path: root/core/wget/MAKEPKG
blob: 5af4192e51d5bbffe685936538ca90c22a615dc9 (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
#!/bin/mkpkg
# description: Network downloader with HTTP/2 and parallel fetch support
# url: https://gitlab.com/gnuwget/wget2

name=wget
_name=wget2
version=2.2.1
release=2
depends=(libressl zlib zstd)
makedeps=()
lockbox=(yes)
source=(https://ftp.gnu.org/gnu/wget/wget2-$version.tar.gz)
sha256sums=(
    "d7544b13e37f18e601244fce5f5f40688ac1d6ab9541e0fbb01a32ee1fb447b4"
)

build() {
    cd $_name-$version

    ./configure \
        --prefix=/usr \
        --bindir=/bin \
        --libdir=/lib \
        --with-ssl=openssl \
        --without-libpsl \
        --without-libhsts \
        --without-libnghttp2 \
        --without-gpgme \
        --without-libpcre2 \
        --without-libpcre \
        --without-libmicrohttpd \
        --without-libidn2 \
        --without-libidn \
        --without-plugin-support \
        --disable-nls \
        --disable-doc

    make
    make DESTDIR=$PKG install

    rm $PKG/bin/wget2_noinstall
    ln -sf wget2 $PKG/bin/wget
}

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

# vim: filetype=sh