# Depends on libffi

# Exit on error:
set -e

wget http://ftp.gnome.org/pub/gnome/sources/glib/2.39/glib-2.39.0.tar.xz
tar xf glib-2.39.0.tar.xz
cd glib-2.39.0

# Fix error "Python interpreter is too old":
export PYTHONHOME=/

./configure \
    --prefix= \
    --enable-gtk-doc-html=no

make install
cd ..
rm -rf glib-2.39.0
rm glib-2.39.0.tar.xz

#rm -rf /share/gtk-doc

exit 0
