diff options
-rw-r--r-- | x11/librsvg/APKBUILD | 34 | ||||
l--------- | x11/librsvg/librsvg.post-deinstall | 1 | ||||
-rw-r--r-- | x11/librsvg/librsvg.post-install | 7 | ||||
l--------- | x11/librsvg/librsvg.post-upgrade | 1 |
4 files changed, 43 insertions, 0 deletions
diff --git a/x11/librsvg/APKBUILD b/x11/librsvg/APKBUILD new file mode 100644 index 0000000000..ba930bf6db --- /dev/null +++ b/x11/librsvg/APKBUILD @@ -0,0 +1,34 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=librsvg +pkgver=2.26.0 +pkgrel=0 +pkgdesc="SAX-based renderer for SVG files into a GdkPixbuf" +url="http://librsvg.sourceforge.net/" +license="LGPL" +subpackages="$pkgname-dev $pkgname-doc" +depends= +makedepends="gtk+-dev libcroco-dev libgsf-dev bzip2-dev" +install="librsvg.post-install librsvg.post-upgrade librsvg.post-deinstall" +source="http://ftp.gnome.org/pub/gnome/sources/$pkgname/2.26/$pkgname-$pkgver.tar.bz2 + $install" + +depends_dev="glib-dev gtk+-dev cairo-dev libcroco-dev libgsf-dev" + +build () +{ + cd "$srcdir"/$pkgname-$pkgver + ./configure --prefix=/usr \ + --libexecdir=/usr/lib/$pkgname \ + --with-croco \ + --disable-static \ + --disable-mozilla-plugin \ + --with-svgz || return 1 + make || return 1 + make DESTDIR=""$pkgdir"" install || return 1 + rm -rf "$pkgdir"/usr/lib/mozilla +} + +md5sums="65dbd726a514fe8b797d26254b8efc1e librsvg-2.26.0.tar.bz2 +323a187b3a9bc1c506543c03a6f533ce librsvg.post-install +323a187b3a9bc1c506543c03a6f533ce librsvg.post-upgrade +323a187b3a9bc1c506543c03a6f533ce librsvg.post-deinstall" diff --git a/x11/librsvg/librsvg.post-deinstall b/x11/librsvg/librsvg.post-deinstall new file mode 120000 index 0000000000..4729c2e260 --- /dev/null +++ b/x11/librsvg/librsvg.post-deinstall @@ -0,0 +1 @@ +librsvg.post-install
\ No newline at end of file diff --git a/x11/librsvg/librsvg.post-install b/x11/librsvg/librsvg.post-install new file mode 100644 index 0000000000..de5ca6c6c0 --- /dev/null +++ b/x11/librsvg/librsvg.post-install @@ -0,0 +1,7 @@ +#!/bin/sh + +#We need to update the pixbuf loaders to let GTK support SVG images +gtk-query-immodules-2.0 > etc/gtk-2.0/gtk.immodules +gdk-pixbuf-query-loaders > etc/gtk-2.0/gdk-pixbuf.loaders + +exit 0 diff --git a/x11/librsvg/librsvg.post-upgrade b/x11/librsvg/librsvg.post-upgrade new file mode 120000 index 0000000000..4729c2e260 --- /dev/null +++ b/x11/librsvg/librsvg.post-upgrade @@ -0,0 +1 @@ +librsvg.post-install
\ No newline at end of file |