| 1 | #!/bin/sh |
| 2 | |
| 3 | set -e |
| 4 | |
| 5 | . ./env.sh |
| 6 | |
| 7 | if [ $# -ne 3 ]; then |
| 8 | echo "Usage: build-curl.sh [release] [openssl] [nghttp2]" |
| 9 | exit 1 |
| 10 | fi |
| 11 | |
| 12 | export PKG_CONFIG="pkg-config --static" |
| 13 | export PKG_CONFIG_PATH="$FAKEROOT/openssl-$2/lib/pkgconfig:$FAKEROOT/nghttp2-$3/lib/pkgconfig" |
| 14 | |
| 15 | NAME=curl-$1 |
| 16 | |
| 17 | fetch "https://curl.haxx.se/download/$NAME.tar.gz" $NAME |
| 18 | |
| 19 | default_build $NAME --enable-shared=no |