# Exit on error:
set -e

wget http://curl.haxx.se/download/curl-7.33.0.tar.bz2
tar xf curl-7.33.0.tar.bz2
cd curl-7.33.0

# For netsurf to support https we use --with-gnutls:
./configure \
    --prefix=/usr \
    --with-gnutls \
    --with-ca-bundle=/etc/ssl/cert.pem

make
make install

cd ..
exit 0
