# Require $prefix, $workdir, $sqlite3_src
install_sqlite3()
(
  [[ -e $prefix/lib/pkgconfig/sqlite3.pc ]] && exit 0

  [[ "$workdir" = */hscpipe_build_dir ]] || exit 1
  rm -rf "$workdir"; mkdir -p "$workdir"; pushd "$workdir"

  curl -L "$sqlite3_src" | tar -xzf -

  cd *
  ./configure --prefix="$prefix" --disable-static
  make
  make install
)
