# $Id: PKGBUILD 99478 2010-11-14 19:57:09Z ibiru $ # Maintainer: Jan de Groot <jgc@archlinux.org> pkgname=librsvg pkgver=2.32.1 pkgrel=1 pkgdesc="SAX-based renderer for SVG files into a GdkPixbuf" arch=(i686 x86_64) license=('LGPL') depends=('gtk2>=2.22.0' 'libcroco>=0.6.2') makedepends=('intltool' 'gtk-doc') optdepends=('python2: rsvg commandline utility') options=('!libtool') url="http://librsvg.sourceforge.net/" install=librsvg.install source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/2.32/${pkgname}-${pkgver}.tar.bz2) sha256sums=('91b98051f352fab8a6257688d6b2fd665b4648ed66144861f2f853ccf876d334') build() { cd "${srcdir}/${pkgname}-${pkgver}" sed -i 's|#!/usr/bin/env python|#!/usr/bin/env python2|' rsvg.in ./configure --prefix=/usr --libexecdir=/usr/lib/${pkgname} \ --with-croco --disable-static \ --with-svgz --enable-gtk-theme make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install }