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

Jan Steffens heftig at archlinux.org
Sun Sep 25 19:34:09 UTC 2016


    Date: Sunday, September 25, 2016 @ 19:34:08
  Author: heftig
Revision: 276953

3.20.3+20+gb9a6ef3-1

Modified:
  libgweather/trunk/PKGBUILD

----------+
 PKGBUILD |   29 ++++++++++++++++++++---------
 1 file changed, 20 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-09-25 18:22:26 UTC (rev 276952)
+++ PKGBUILD	2016-09-25 19:34:08 UTC (rev 276953)
@@ -2,23 +2,34 @@
 # Maintainer: Jan de Groot  <jgc at archlinux.org>
 
 pkgname=libgweather
-pkgver=3.20.3
+pkgver=3.20.3+20+gb9a6ef3
 pkgrel=1
 pkgdesc="Location and timezone database and weather-lookup library"
 url="https://wiki.gnome.org/Projects/LibGWeather"
 arch=(i686 x86_64)
 license=(LGPL)
-depends=(libsoup gtk3 geocode-glib)
-makedepends=(intltool gobject-introspection vala)
+depends=(libsoup gtk3 geocode-glib dconf)
+makedepends=(intltool gobject-introspection vala git gtk-doc autoconf-archive glade)
 options=(!emptydirs)
-source=(https://download.gnome.org/sources/$pkgname/${pkgver:0:4}/$pkgname-$pkgver.tar.xz)
-sha256sums=('fb6bc5b64ef5db3dc40a9798f072b83ebcafe7ff5af472aaee70600619b56c0b')
+_commit=b9a6ef3285d7e6f1cb8a89294b286360cee5b401
+source=("git://git.gnome.org/libgweather#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 --disable-static
+  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
+    --disable-static --enable-gtk-doc
 
   sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
 
@@ -26,6 +37,6 @@
 }
 
 package() {
-  cd "$pkgname-$pkgver"
+  cd "$pkgname"
   make DESTDIR="$pkgdir" install
 }



More information about the arch-commits mailing list