# $Id: PKGBUILD 138210 2011-09-18 16:29:47Z ibiru $ # Maintainer: Jan de Groot pkgname=librsvg pkgver=2.34.1 pkgrel=2 pkgdesc="SAX-based renderer for SVG files into a GdkPixbuf" arch=(i686 x86_64) license=('LGPL') depends=('gdk-pixbuf2' 'pango' 'libcroco') makedepends=('intltool' 'gtk2') optdepends=('gtk2: for rsvg-view support') options=('!libtool' '!emptydirs') url="http://librsvg.sourceforge.net/" install=librsvg.install source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/2.34/${pkgname}-${pkgver}.tar.xz) sha256sums=('4f2ab987eed2943b5a0ce3dde1672d2bc87123bee66d885dd7307eb7ede756db') 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 make } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install }