# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=libgnome-keyring
pkgver=3.12.0
pkgrel=1
pkgdesc="GNOME keyring"
url="http://www.gnome.org"
arch="all"
license="GPL"
depends="gnome-keyring"
depends_dev="gtk+3.0-dev
	     gconf-dev
	     libx11-dev
	     gnome-doc-utils
	     libgnome-dev
	     libwnck-dev

	     libgcrypt-dev
	     libtasn1-dev

	     libxcursor-dev
	     libxcomposite-dev
	     libxi-dev
	     libxau-dev
	     libxdmcp-dev
	     libxext-dev
	     libxcb-dev"
makedepends="$depends_dev intltool gobject-introspection-dev"
subpackages="$pkgname-dev $pkgname-lang"
source="https://download.gnome.org/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"

	export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
	make DESTDIR="$pkgdir" install
}

sha512sums="dd1777b6e0dd774feb86dbc72d9f2a85f2143e2772a09c438b84aec468ddc5e7ee5ebd534d24f079e5daf4757f2918d0621e26fb671fde0fcef9c74d30f8b9bd  libgnome-keyring-3.12.0.tar.xz"
