# 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 3.2 to support https we use --with-gnutls:
./configure --prefix= \
    --with-gnutls \
    --with-ca-bundle=/etc/ssl/cert.pem

make
make install
cd ..
rm -rf curl-7.33.0
rm curl-7.33.0.tar.bz2

exit 0
