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

Evangelos Foutras foutrelis at nymeria.archlinux.org
Sat May 4 15:37:41 EDT 2013


    Date: Saturday, May 4, 2013 @ 21:37:41
  Author: foutrelis
Revision: 184238

upgpkg: gnumeric 1.12.2-1

Fix invalid PNG images to work with libpng 1.6.
New upstream release.

Modified:
  gnumeric/trunk/PKGBUILD

----------+
 PKGBUILD |   18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-04 19:06:47 UTC (rev 184237)
+++ PKGBUILD	2013-05-04 19:37:41 UTC (rev 184238)
@@ -3,14 +3,15 @@
 # Contributor: Kritoke <typeolinux at yahoo.com>
 
 pkgname=gnumeric
-pkgver=1.12.1
+pkgver=1.12.2
 pkgrel=1
 pkgdesc="A GNOME Spreadsheet Program"
 arch=('i686' 'x86_64')
 url="http://www.gnome.org/projects/gnumeric/"
 license=('GPL')
 depends=('goffice' 'desktop-file-utils' 'hicolor-icon-theme')
-makedepends=('intltool' 'psiconv' 'pygobject-devel' 'gnome-doc-utils' 'gobject-introspection')
+makedepends=('intltool' 'psiconv' 'pygobject-devel' 'gnome-doc-utils'
+             'gobject-introspection' 'optipng')
 optdepends=('python2-gobject: for python plugin support'
             'perl: for perl plugin support'
             'psiconv: for Psion 5 file support'
@@ -20,12 +21,13 @@
 source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz
         gnumeric-1.12.1-automake-1.13.patch
         revert-warnings.patch)
-sha256sums=('0f5a7af3acae7db643eb00e8b4fca6a9e90162259c6a73e4214cfa8c96cc3901'
+sha256sums=('d6fda191c1c76be2ede21fe78b8c9f96d39aea82ccfb537775a83bf88d781874'
             '1eb57b931023d961e9d0f3675fe96b5559270fa38c97401cb06fc7aed9c8e275'
             'bcafca016b809000c2a5bf911e2e3dfa4de28f9e541d9964574cac5c7ce09e53')
 
-build() {
+prepare() {
   cd "${srcdir}/${pkgname}-${pkgver}"
+
   patch -Np1 -i ../gnumeric-1.12.1-automake-1.13.patch
   patch -Np0 -i ../revert-warnings.patch
 
@@ -33,6 +35,14 @@
   sed -i -e 's/zz-application\/zz-winassoc-xls;//' gnumeric.desktop.in
 
   autoreconf -fi
+
+  # Fix invalid PNG images to work with libpng 1.6
+  # https://bugzilla.gnome.org/show_bug.cgi?id=699683
+  find -name '*.png' -exec optipng -quiet -force -fix {} +
+}
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
     --disable-schemas-compile --enable-introspection
   make



More information about the arch-commits mailing list