# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=gcr
pkgver=3.27.92
pkgrel=0
pkgdesc="A library for bits of crypto UI and parsing"
url="https://wiki.gnome.org/Projects/CryptoGlue"
arch="all"
options="!check"  # Requires running X11 and D-Bus.
license="LGPL-2.0-or-later"
depends_dev="glib-dev gtk+3.0-dev libgcrypt-dev p11-kit-dev"
makedepends="$depends_dev gobject-introspection-dev libxslt vala"
subpackages="$pkgname-dev $pkgname-doc $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 \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--enable-introspection \
		--enable-vala
	make
}

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

sha256sums="4d377011fe346c0d0f0d1edfb7d33ea68e0cce9a1284439c55ccf6b13a80e3e9  gcr-3.27.92.tar.xz"
sha512sums="6aeca5b24e34d334fe45a6ece0e6ede3f3dadc3b45f9cbd327b8e3d8f5742c2602b9814aff7b6b79facd39810de160c07449d64adbdf44165fa688911a9d11a6  gcr-3.27.92.tar.xz"
