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

Jan Steffens heftig at archlinux.org
Tue Sep 27 18:39:38 UTC 2016


    Date: Tuesday, September 27, 2016 @ 18:39:38
  Author: heftig
Revision: 277097

3.22.0+1+gf60543a-1

Modified:
  gnome-sudoku/trunk/PKGBUILD

----------+
 PKGBUILD |   29 ++++++++++++++++++++++-------
 1 file changed, 22 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-09-27 18:37:18 UTC (rev 277096)
+++ PKGBUILD	2016-09-27 18:39:38 UTC (rev 277097)
@@ -3,7 +3,7 @@
 # Contributor: Jan de Groot <jgc at archlinux.org>
 
 pkgname=gnome-sudoku
-pkgver=3.20.5
+pkgver=3.22.0+1+gf60543a
 pkgrel=1
 pkgdesc="Test your logic skills in this number grid puzzle"
 url="https://wiki.gnome.org/Apps/Sudoku"
@@ -10,14 +10,29 @@
 arch=(x86_64 i686)
 license=(GPL)
 depends=(dconf gtk3 qqwing libgee json-glib)
-makedepends=(intltool itstool vala)
-options=(!emptydirs)
+makedepends=(intltool itstool vala yelp-tools autoconf-archive appstream-glib git)
 groups=(gnome-extra)
-source=(https://download.gnome.org/sources/$pkgname/${pkgver:0:4}/$pkgname-$pkgver.tar.xz)
-sha256sums=('339480745513692e782eaf4312326f2aecca7acd822e3eaebc678332cb5ecb98')
+_commit=f60543a84d226dcb4754a8f09ae4592f1d0ae28c
+source=("git://git.gnome.org/gnome-sudoku#commit=$_commit")
+sha256sums=('SKIP')
 
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+
+  # Work around aclocal exiting with "too many loops"
+  mkdir m4
+  cp /usr/share/aclocal/ax_require_defined.m4 m4
+
+  NOCONFIGURE=1 ./autogen.sh
+}
+
 build() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   ./configure --prefix=/usr --sysconfdir=/etc \
       --localstatedir=/var --disable-schemas-compile
   make
@@ -24,7 +39,7 @@
 }
 
 package() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   make DESTDIR="$pkgdir" install
 
   sed -i 's_#! /usr/bin/python_#!/usr/bin/python2_' "$pkgdir/usr/bin/gnome-sudoku"



More information about the arch-commits mailing list