# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=geocode-glib
pkgver=3.23.90
pkgrel=0
pkgdesc="geocoding library for glib"
url="https://developer.gnome.org/geocode-glib/"
arch="all"
license="LGPL"
depends=""
depends_dev="glib-dev json-glib-dev libsoup-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev $pkgname-doc"
source="https://download.gnome.org/sources/geocode-glib/3.23/geocode-glib-$pkgver.tar.xz"
builddir="$srcdir/geocode-glib-$pkgver"

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

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

check() {
	cd "$builddir"
	make check
}

sha512sums="a0a933950a4152f61726b77318b9126beb1c75d97e89245084ff2363359d5a6aed1e4083de1ab17900ffb3c004007f913980fc0c14f8db5fc5a07bbd0a6b96e3  geocode-glib-3.23.90.tar.xz"
