# Description: Low-level data structure handling, portability wrappers, and interfaces for runtime functionality
# URL:         http://www.gtk.org/
# Maintainer:  Fredrik Rinnestam, fredrik at crux dot nu
# Depends on:  libpcre libffi python

name=glib
version=2.46.2
release=1
source=(http://download.gnome.org/sources/$name/${version:0:4}/$name-$version.tar.xz)

build () {
    cd $name-$version

    ./configure --prefix=/usr \
                --disable-man \
                --with-pcre=system
    make
    make -j1 DESTDIR=$PKG install

    install -d $PKG/usr/man/man1
    find docs -name '*.1' -exec install -m 0644 {} $PKG/usr/man/man1 \;

    rm -rf $PKG/usr/share/{gtk-doc,locale}
    rm -r $PKG/usr/share/bash-completion
}
