# Maintainer: Natanael Copa pkgname=gdk-pixbuf pkgver=2.31.5 pkgrel=0 pkgdesc="GDK Pixbuf library" url="http://www.gtk.org/" arch="all" license="LGPL" depends= depends_dev="libpng-dev glib-dev" makedepends="$depends_dev tiff-dev libjpeg-turbo-dev gobject-introspection-dev" install="$pkgname.pre-deinstall" triggers="$pkgname.trigger=/usr/lib/gdk-pixbuf-2.0/*/loaders" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" source="http://ftp.gnome.org/pub/gnome/sources/gdk-pixbuf/${pkgver%.*}/gdk-pixbuf-$pkgver.tar.xz" replaces="gtk+" _builddir="$srcdir"/$pkgname-$pkgver prepare() { cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --with-x11 \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install } doc() { replaces="gtk+-doc" default_doc } dev() { replaces="gtk+-dev" default_dev } md5sums="09bbce27f9a1ab5024ece39ceca219c9 gdk-pixbuf-2.31.5.tar.xz" sha256sums="0a76e70497cd25ef2ac0da63a489c158ea3926724eb83d5254f9a0bc985ff7a6 gdk-pixbuf-2.31.5.tar.xz" sha512sums="9488d235c5588821613276e9ea67e5ec4910060adc9f10c84fbd2fec58bc504b3d926cf14facfede43baccc8a9ef4fd677c62d4ee9533a7dc9870a7bf2a3d04a gdk-pixbuf-2.31.5.tar.xz"