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

Jan Steffens heftig at archlinux.org
Thu Jan 26 20:52:07 UTC 2017


    Date: Thursday, January 26, 2017 @ 20:52:06
  Author: heftig
Revision: 287540

3.20.2-2

Modified:
  gnome-weather/trunk/PKGBUILD

----------+
 PKGBUILD |   23 +++++++++++++++++------
 1 file changed, 17 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-01-26 20:45:50 UTC (rev 287539)
+++ PKGBUILD	2017-01-26 20:52:06 UTC (rev 287540)
@@ -3,24 +3,35 @@
 
 pkgname=gnome-weather
 pkgver=3.20.2
-pkgrel=1
+pkgrel=2
 pkgdesc="Access current weather conditions and forecasts"
 url="https://wiki.gnome.org/Apps/Weather"
 arch=(any)
 license=(GPL)
 depends=(gtk3 gjs libgweather geoclue2 gnome-desktop)
-makedepends=(intltool gobject-introspection)
+makedepends=(intltool gobject-introspection autoconf-archive appstream-glib git)
 groups=(gnome-extra)
-source=(http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${pkgver:0:4}/${pkgname}-${pkgver}.tar.xz)
-sha256sums=('7823ca7c08fa852232b98c2517830e3bd9b0ab80c9ac83f182c18ec140a5c18b')
+_commit=dc0de147404ca887471990c54f6cd94afe27dcd2  # tags/3.20.2^0
+source=("git+https://git.gnome.org/browse/gnome-weather#commit=$_commit")
+sha256sums=('SKIP')
 
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+  NOCONFIGURE=1 ./autogen.sh
+}
+
 build() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
   make
 }
 
 package() {
-  cd $pkgname-$pkgver
+  cd $pkgname
   make DESTDIR="$pkgdir" install
 }



More information about the arch-commits mailing list