|
root / base / curl / build.sh
build.sh Bash 35 lines 729 B
 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
#!/bin/bash
# Build script for curl
# Command line tool for transferring data with URLs

set -e

cd "$SRCDIR"

# Ensure runtime linker can find our libraries
export LD_LIBRARY_PATH="/usr/lib:$LD_LIBRARY_PATH"

# Configure curl with LibreSSL
./configure \
    --build=$BUILD_TRIPLE \
    --host=$BUILD_TRIPLE \
    --prefix=$PREFIX \
    --with-ssl=/usr \
    --with-zlib=/usr \
    --enable-ipv6 \
    --enable-unix-sockets \
    --disable-ldap \
    --disable-ldaps \
    --without-brotli \
    --without-zstd \
    --without-libidn2 \
    --without-libpsl \
    --without-nghttp2 \
    --without-nghttp3 \
    --without-ngtcp2 \
    --without-librtmp \
    --without-libssh2

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"