From c1d553388d7ef1ba387bc01747e7da23f6b7ccc6 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sun, 12 Aug 2018 17:46:34 -0400 Subject: Initial commit --- build_mpdec.sh | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100755 build_mpdec.sh (limited to 'build_mpdec.sh') diff --git a/build_mpdec.sh b/build_mpdec.sh new file mode 100755 index 0000000..5bae0c2 --- /dev/null +++ b/build_mpdec.sh @@ -0,0 +1,34 @@ +#!/bin/bash +set -e +set -x + +tarball="mpdecimal-2.4.2.tar.gz" +dest="${tarball%%.tar.gz}" +url="http://www.bytereef.org/software/mpdecimal/releases/${tarball}" +prefix="/usr" + +function pre() +{ + curl -LO "${url}" + tar xf "${tarball}" +} + +function build() +{ + pre + pushd "${dest}" + export LDFLAGS="-Wl,-rpath=$prefix/lib" + ./configure --prefix=$prefix + make + make install + popd + post +} + +function post() +{ + echo "All done." +} + +# Main +build -- cgit