# Maintainer: Natanael Copa pkgname=librsvg pkgver=2.40.9 pkgrel=0 pkgdesc="SAX-based renderer for SVG files into a GdkPixbuf" url="http://librsvg.sourceforge.net/" arch="all" license="LGPL" subpackages="$pkgname-dev $pkgname-doc" depends= makedepends="gtk+-dev libcroco-dev libgsf-dev bzip2-dev gobject-introspection-dev" install= source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/${pkgver%.*}/$pkgname-$pkgver.tar.xz " depends_dev="glib-dev gtk+-dev cairo-dev libcroco-dev libgsf-dev" _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 \ --libexecdir=/usr/lib/$pkgname \ --disable-static \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR=""$pkgdir"" install || return 1 rm -rf "$pkgdir"/usr/lib/mozilla || return 1 find "$pkgdir" -name '*.la' -delete } md5sums="31df15e3beaa8fbbf538ca3c52b400d2 librsvg-2.40.9.tar.xz" sha256sums="13964c5d35357552b47d365c34215eee0a63bf0e6059b689f048648c6bf5f43a librsvg-2.40.9.tar.xz" sha512sums="17b72b509b0d38b1291a2a0594739fd650622ab2a913a5e0c864e5060b15093fc49e436c9e2494d57b475572183d1059ae50b7a1d44a1d4d071ac5ef3bcbeaf6 librsvg-2.40.9.tar.xz"