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

Jan de Groot jgc at archlinux.org
Thu Oct 20 13:58:51 UTC 2016


    Date: Thursday, October 20, 2016 @ 13:58:50
  Author: jgc
Revision: 279043

upgpkg: gnumeric 1.12.32-1

move to git build, add gnome-common git as we need some deprecated files from an older gnome-common release

Modified:
  gnumeric/trunk/PKGBUILD

----------+
 PKGBUILD |   30 +++++++++++++++++-------------
 1 file changed, 17 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-10-20 12:26:20 UTC (rev 279042)
+++ PKGBUILD	2016-10-20 13:58:50 UTC (rev 279043)
@@ -3,7 +3,7 @@
 # Contributor: Kritoke <typeolinux at yahoo.com>
 
 pkgname=gnumeric
-pkgver=1.12.31
+pkgver=1.12.32
 pkgrel=1
 pkgdesc="A GNOME Spreadsheet Program"
 arch=('i686' 'x86_64')
@@ -11,29 +11,33 @@
 license=('GPL')
 depends=('goffice')
 makedepends=('intltool' 'psiconv' 'pygobject-devel'
-             'gobject-introspection' 'rarian' 'python2-gobject')
+             'gobject-introspection' 'rarian' 'python2-gobject' gtk-doc autoconf-archive git)
 optdepends=('python2-gobject: for python plugin support'
             'perl: for perl plugin support'
             'psiconv: for Psion 5 file support'
             'yelp: for viewing the help manual')
-source=(https://download.gnome.org/sources/${pkgname}/${pkgver:0:4}/${pkgname}-${pkgver}.tar.xz
+_commit=0e34331361ac41a5f09ed10f4df26861be4f1160  # tags/GNUMERIC_1_12_32^0
+source=("git://git.gnome.org/gnumeric#commit=$_commit"
+        git://git.gnome.org/gnome-common#commit=6684e2fa5d5a4c72c9bf116f74688c0b47f350cf
         revert-warnings.patch)
-sha256sums=('c8ace78e75c280dced3f15b27c44c7a98e8d21cd8361c6b2599cce191f6d6ae7'
+sha256sums=('SKIP'
+            'SKIP'
             'bcafca016b809000c2a5bf911e2e3dfa4de28f9e541d9964574cac5c7ce09e53')
 
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/^GNUMERIC_//;s/_/./g;s/-/+/g'
+}
+
 prepare() {
-  cd $pkgname-$pkgver
-
+  cd $pkgname
+  cp ../gnome-common/doc-build/{omf,xmldocs}.make .
   patch -Np0 -i ../revert-warnings.patch
-
-  # Remove invalid mime type. (FS#26338)
-  sed -i -e 's/zz-application\/zz-winassoc-xls;//' gnumeric.desktop.in
-
-  autoreconf -fi
+  NOCONFIGURE=1 ./autogen.sh
 }
 
 build() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   PYTHON=/usr/bin/python2 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
     --disable-schemas-compile --enable-introspection
 
@@ -42,6 +46,6 @@
 }
 
 package() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   make DESTDIR="${pkgdir}" install
 }



More information about the arch-commits mailing list