# Exit on error:
set -e

wget https://archive.apache.org/dist/apr/apr-1.5.0.tar.bz2
tar xf apr-1.5.0.tar.bz2
cd apr-1.5.0

./configure --prefix= \
    --with-installbuilddir=/share/apr-1

make install
cd ..
rm -rf apr-1.5.0
rm apr-1.5.0.tar.bz2

exit 0
