# Maintainer: Natanael Copa pkgname=librsvg pkgver=2.39.0 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" update_config_sub || return 1 } build() { cd "$_builddir" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --libexecdir=/usr/lib/$pkgname \ --with-croco \ --disable-static \ --disable-mozilla-plugin \ --with-svgz \ || 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="c64de5ecaa40a6ae37656eebbe6c9e08 librsvg-2.39.0.tar.xz" sha256sums="aa47dcde0128eee6e3595d203bc673d9c27389588842f401bf585f31fc65095f librsvg-2.39.0.tar.xz" sha512sums="14e3224c2fad8c92beabce9b486d8cc94e288db5d7d0bda9016fa953ad31456f3934ad847dc7288185fcba840731c25c2eca75288cb2518d2d501abea9ecd98d librsvg-2.39.0.tar.xz"