debootstrap --components=main,universe unstable gimpdev
cd gimpdev
mount proc proc -t proc
mount sysfs sys -t sysfs
cd ..
xhost +
chroot gimpdev
apt install --assume-yes libjson-c-dev libtool m4 automake intltool libglib2.0-dev autopoint
apt install --assume-yes json-glib-1.0 glib-1.0 libjpeg-dev libpng-dev
apt install --assume-yes libxslt-dev xsltproc gtk-doc-tools libgtk2.0-dev gtk+-3.0
apt install --assume-yes libtiff-dev librsvg2-dev poppler-data libpoppler-glib-dev
apt install --assume-yes libpython-dev mypaint-brushes liblcms2-dev
apt install --assume-yes libpangocairo-1.0-0 libgexiv2-dev libbz2-dev libappstream-glib-dev
apt install --assume-yes python-gtk2-dev python-cairo-dev
git clone https://github.com/mypaint/libmypaint.git
cd libmypaint/
git checkout v1.3.0
./autogen.sh && ./configure && make && make install
cd ..
git clone git://git.gnome.org/babl
cd babl
./autogen.sh && ./configure && make && make install
cd ..
git clone https://git.gnome.org/browse/gegl
cd gegl
./autogen.sh && ./configure && make && make install
cd ..
git clone https://git.gnome.org/browse/gimp
cd gimp
./autogen.sh && ./configure && make && make install
cd ..
LD_LIBRARY_PATH=/usr/local/lib
gimp-2.99