description="Location and timezone database and weather-lookup library"
url="https://wiki.gnome.org/Projects/LibGWeather"

license="GPL2"

packager="spiky <spiky@nutyx.org>"
contributors="Tnut"

makedepends=(geocode-glib gobject-introspection libsoup3 meson ninja
             vala python-gobject gi-docgen)
run=(gtk-update-icon-cache)

name=libgweather-4
version=4.4.4

source=(https://gitlab.gnome.org/GNOME/libgweather/-/archive/$version/libgweather-$version.tar.gz
        disable-metar-test.patch)

prepare() {
cd libgweather-$version
patch -Np1 -i ../disable-metar-test.patch
}

build() {
cd libgweather-$version
mkdir build
cd    build

meson setup .. \
      --prefix=/usr \
      -Dgtk_doc=false
ninja
DESTDIR=$PKG ninja install

install -Dm644 ../COPYING $PKG/usr/share/licenses/$name/COPYING
}
