#!/bin/sh

set -ev

apt-get -y update

BINTRAY=http://dl.bintray.com/lamyj/generic/apt

apt-get -y --no-install-recommends install gnupg software-properties-common wget
wget -O - http://dl.bintray.com/lamyj/generic/gpg.key | apt-key add -
if wget -q -O /dev/null ${BINTRAY}/dists/$(lsb_release -cs)/Release; then
  add-apt-repository "deb ${BINTRAY} $(lsb_release -cs) main"
fi
apt-get update

apt-get -y --no-install-recommends install \
  build-essential cmake ninja-build pkg-config python3 \
  libboost-dev libboost-date-time-dev libboost-exception-dev \
  libboost-log-dev libboost-filesystem-dev libboost-regex-dev \
  libdcmtk2-dev libicu-dev libjsoncpp-dev zlib1g-dev \
  pybind11-dev python3-pybind11 python3-dev \
  libboost-test-dev dcmtk
