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

Jan de Groot jgc at archlinux.org
Sun Feb 5 19:20:36 UTC 2017


    Date: Sunday, February 5, 2017 @ 19:20:36
  Author: jgc
Revision: 288095

upgpkg: goffice 0.10.33-1

Modified:
  goffice/trunk/PKGBUILD

----------+
 PKGBUILD |   25 ++++++++++++++++++-------
 1 file changed, 18 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-02-05 19:10:29 UTC (rev 288094)
+++ PKGBUILD	2017-02-05 19:20:36 UTC (rev 288095)
@@ -3,7 +3,7 @@
 # Contributor: Aaron Griffin <aaron at archlinux.org>
 
 pkgname=goffice
-pkgver=0.10.31
+pkgver=0.10.33
 pkgrel=1
 pkgdesc="A GLib/GTK+ set of document-centric objects and charting library"
 url="https://git.gnome.org/browse/goffice"
@@ -10,14 +10,25 @@
 arch=(i686 x86_64)
 license=(GPL)
 depends=(librsvg gtk3 libgsf libspectre libxslt lasem)
-makedepends=(intltool gtk-doc gobject-introspection)
-source=(https://download.gnome.org/sources/${pkgname}/${pkgver:0:4}/${pkgname}-${pkgver}.tar.xz)
-sha256sums=('9d1fc2dcc131742348ed6e1597e2fab143cbf73e7067c5c05a3f3565266ed5a5')
+makedepends=(intltool gtk-doc gobject-introspection autoconf-archive git)
+_commit=a3608ccb15b56799ce11b9e419c319c649c8fcae  # tags/GOFFICE_0_10_33^0
+source=("git+https://git.gnome.org/browse/goffice#commit=$_commit")
+sha256sums=('SKIP')
 
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/^GOFFICE_//;s/_/./g;s/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+  NOCONFIGURE=1 ./autogen.sh
+}
+
 build() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   ./configure --prefix=/usr --sysconfdir=/etc \
-      --localstatedir=/var --disable-static --enable-introspection
+      --localstatedir=/var --disable-static --enable-introspection --enable-gtk-doc
 
   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
   make
@@ -24,6 +35,6 @@
 }
 
 package() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   make DESTDIR="${pkgdir}" install
 }



More information about the arch-commits mailing list