name=mbedtls version=2.4.0 update_url='https://tls.mbed.org/' dlextract "https://tls.mbed.org/download/$name-$version-apache.tgz" \ '4debf0e0eed7e75a00b7780830c9688e' header_end cd "$name-$version" # enable flags for non-embedded systems (from ArchLinux) sed -i 's|//\(#define MBEDTLS_THREADING_C\)|\1|' include/mbedtls/config.h sed -i 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' include/mbedtls/config.h # Don't build static libraries sed -i -e '/^all: shared/s/static//' library/Makefile # Fix paths sed -i -e "s/\(\$(DESTDIR)\/\)lib/\1$(safe_sed "$dir_libdir")/" \ -e "s/\(\$(DESTDIR)\/\)bin/\1$(safe_sed "$dir_bindir")/" Makefile make SHARED=1 DESTDIR="$dir_install/$dir_prefix" install # vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab: