# Maintainer: Natanael Copa pkgname=gdk-pixbuf pkgver=2.32.1 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 glibc-malloc.patch " 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="b1590189a2e89fab9f871959c168508c gdk-pixbuf-2.32.1.tar.xz c65938b5827467f1a0743c8ba96aa27d glibc-malloc.patch" sha256sums="4432b74f25538c7d6bcb3ca51adabdd666168955f25812a2568dc9637697f3bc gdk-pixbuf-2.32.1.tar.xz 60fe43700c5a380d4b9e14669b54c99eba755d7fa5d780aabea6ef13bdc59387 glibc-malloc.patch" sha512sums="4c744f166e86c17cafebe0db9434794666b64850a60597e34675cf9b902e48e89c3ff45032a10899944ae59b6c0db63c1ff33c4d2c50846393e77bad3a3adec2 gdk-pixbuf-2.32.1.tar.xz 5bdcc5e3fad53e9faf7c86fe3310e4a111dbce5c979f93d3b9e816af0f368f40782fa2195a1e5097838b17ca7f6195c2546a6055c7323025bdcd4323fdf5f5e0 glibc-malloc.patch"