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

Jan Steffens heftig at archlinux.org
Thu Mar 8 20:01:24 UTC 2018


    Date: Thursday, March 8, 2018 @ 20:01:19
  Author: heftig
Revision: 318276

3.27.4+66+g04e6df0-1

Modified:
  libgweather/trunk/PKGBUILD

----------+
 PKGBUILD |   26 +++++++++++---------------
 1 file changed, 11 insertions(+), 15 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-03-08 19:54:09 UTC (rev 318275)
+++ PKGBUILD	2018-03-08 20:01:19 UTC (rev 318276)
@@ -2,7 +2,7 @@
 # Maintainer: Jan de Groot  <jgc at archlinux.org>
 
 pkgname=libgweather
-pkgver=3.26.1
+pkgver=3.27.4+66+g04e6df0
 pkgrel=1
 pkgdesc="Location and timezone database and weather-lookup library"
 url="https://wiki.gnome.org/Projects/LibGWeather"
@@ -9,10 +9,9 @@
 arch=(x86_64)
 license=(LGPL)
 depends=(libsoup gtk3 geocode-glib dconf)
-makedepends=(intltool gobject-introspection vala git gtk-doc autoconf-archive glade)
-options=(!emptydirs)
-_commit=f8cde059f8ec58f1ba341fe219f1d8fbbe7eadb8  # tags/3.26.1^0
-source=("git+https://git.gnome.org/browse/libgweather#commit=$_commit")
+makedepends=(gobject-introspection vala git gtk-doc glade meson)
+_commit=04e6df08c06428eeca2ce910689a6d107510d400  # master
+source=("git+https://gitlab.gnome.org/GNOME/libgweather.git#commit=$_commit")
 sha256sums=('SKIP')
 
 pkgver() {
@@ -22,21 +21,18 @@
 
 prepare() {
   cd $pkgname
-  NOCONFIGURE=1 ./autogen.sh
 }
 
 build() {
-  cd "$pkgname"
+  arch-meson $pkgname build -D gtk_doc=true
+  ninja -C build
+}
 
-  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
-    --disable-static --enable-gtk-doc
-
-  sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
-
-  make
+check() {
+  cd build
+  meson test
 }
 
 package() {
-  cd "$pkgname"
-  make DESTDIR="$pkgdir" install
+  DESTDIR="$pkgdir" ninja -C build install
 }



More information about the arch-commits mailing list