# Maintainer: Natanael Copa pkgname=gcr pkgver=3.18.0 pkgrel=0 pkgdesc="A library for bits of crypto UI and parsing" url="http://live.gnome.org/CryptoGlue/" arch="all" license="LGPLv2+" depends="" depends_dev="glib-dev gtk+3.0-dev libgcrypt-dev p11-kit-dev" makedepends="$depends_dev gobject-introspection-dev libxslt vala" install="" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang" source="http://download.gnome.org/sources/gcr/${pkgver%.*}/gcr-$pkgver.tar.xz" _builddir="$srcdir"/gcr-$pkgver prepare() { local i cd "$_builddir" for i in $source; do case $i in *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; esac done } 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 \ || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 } md5sums="b959bac99e17c9bb0990a15c9be11aed gcr-3.18.0.tar.xz" sha256sums="d4d16da5af55148a694055835ccd07ad34daf0ad03bdad929bf7cad15637ce00 gcr-3.18.0.tar.xz" sha512sums="3733a462c23b0cf1d3579ea4b0b6eea9b5e3eb98e81e7c0e0364e540ec60a7a7bc567d1d159c674df280fb20c305cbaef796dffef73801ece4f4474352786e6b gcr-3.18.0.tar.xz"