# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgweather
pkgver=3.26.0
pkgrel=0
pkgdesc="GNOME weather library"
url="http://www.gnome.org/"
arch="all"
license="LGPL"
depends="tzdata"
makedepends="gtk+3.0-dev libsoup-dev libxml2-dev 
	glib-dev geocode-glib-dev gobject-introspection-dev 
	libxml2-utils gtk-doc py-six"
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://ftp.gnome.org/pub/GNOME/sources/${pkgname}/${pkgver%.*}/${pkgname}-${pkgver}.tar.xz"
builddir="${srcdir}/${pkgname}-${pkgver}"

build() {
	cd "$builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc
	make
}

check() {
	cd "$builddir"
	make check
}
package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="46fcc8319861237f908218b223102217591d731803093727a159912cefbd82017e1e064535d785e7f4ee6d227b47aff3240a14396fb9dc06ab26343720473606  libgweather-3.26.0.tar.xz"