[arch-commits] Commit in librsvg/trunk (PKGBUILD)

Eric Bélanger eric at archlinux.org
Sat Sep 11 21:20:16 UTC 2010


    Date: Saturday, September 11, 2010 @ 17:20:16
  Author: eric
Revision: 90470

upgpkg: librsvg 2.26.3-2
Rebuilt for python2

Modified:
  librsvg/trunk/PKGBUILD

----------+
 PKGBUILD |   19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2010-09-11 21:10:54 UTC (rev 90469)
+++ PKGBUILD	2010-09-11 21:20:16 UTC (rev 90470)
@@ -3,24 +3,29 @@
 
 pkgname=librsvg
 pkgver=2.26.3
-pkgrel=1
+pkgrel=2
 pkgdesc="SAX-based renderer for SVG files into a GdkPixbuf"
 arch=(i686 x86_64)
 license=('LGPL')
 depends=('gtk2>=2.20.0' 'libcroco>=0.6.2' 'libgsf>=1.14.16')
-makedepends=('intltool' 'pkgconfig' 'gtk-doc')
-optdepends=('python: rsvg commandline utility')
+makedepends=('intltool' 'pkg-config' '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.26/${pkgname}-${pkgver}.tar.bz2)
-install=librsvg.install
 sha256sums=('c0005f9471b4bd3ba4873d165d8e481ee6b1d124dda4efc6bdc24b7da024b7e5')
 
 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 || return 1
-  make || return 1
-  make DESTDIR="${pkgdir}" install || return 1
+	      --with-svgz
+  make
 }
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+}




More information about the arch-commits mailing list