diff options
Diffstat (limited to 'abs/core/librsvg')
-rw-r--r-- | abs/core/librsvg/PKGBUILD | 28 | ||||
-rw-r--r-- | abs/core/librsvg/librsvg.install | 14 |
2 files changed, 42 insertions, 0 deletions
diff --git a/abs/core/librsvg/PKGBUILD b/abs/core/librsvg/PKGBUILD new file mode 100644 index 0000000..c4f4a11 --- /dev/null +++ b/abs/core/librsvg/PKGBUILD @@ -0,0 +1,28 @@ +# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $ +# Maintainer: Jan de Groot <jgc@archlinux.org> + +pkgname=librsvg +pkgver=2.22.2 +pkgrel=1 +pkgdesc="SAX-based renderer for SVG files into a GdkPixbuf" +arch=(i686 x86_64) +license=('LGPL') +depends=('gtk2>=2.12.9' 'libcroco>=0.6.1' 'libgsf>=1.14.8') +makedepends=('perlxml' 'pkgconfig') +options=('!libtool') +url="http://librsvg.sourceforge.net/" +source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/2.22/${pkgname}-${pkgver}.tar.bz2) +install=librsvg.install +md5sums=('aae602677ce201b1a0ed6a0c18c207f2') + +build() { + cd ${startdir}/src/${pkgname}-${pkgver} + ./configure --prefix=/usr --libexecdir=/usr/lib/${pkgname} \ + --with-croco \ + --disable-mozilla-plugin --with-svgz + make || return 1 + make DESTDIR=${startdir}/pkg install + rm -rf ${startdir}/pkg/usr/share/gtk-doc + rm -rf ${startdir}/pkg/usr/lib/mozilla + rm ${startdir}/pkg/usr/lib/gtk-2.0/*/{engines,loaders}/*.a +} diff --git a/abs/core/librsvg/librsvg.install b/abs/core/librsvg/librsvg.install new file mode 100644 index 0000000..8a6dd5a --- /dev/null +++ b/abs/core/librsvg/librsvg.install @@ -0,0 +1,14 @@ +# arg 1: the new package version +post_install() { + #We need to update the pixbuf loaders to let GTK support SVG images + usr/bin/gtk-query-immodules-2.0 > etc/gtk-2.0/gtk.immodules + usr/bin/gdk-pixbuf-query-loaders > etc/gtk-2.0/gdk-pixbuf.loaders +} + +post_upgrade() { + post_install $1 +} + +post_remove() { + post_install $1 +} |