# Contributor: Rasmus Thomsen # Contributor: Natanael Copa # Maintainer: Newbyte pkgname=gcr4 pkgver=4.1.0 pkgrel=1 pkgdesc="Library for bits of crypto UI and parsing" url="https://wiki.gnome.org/Projects/CryptoGlue" arch="all" license="LGPL-2.0-or-later" makedepends=" glib-dev gobject-introspection-dev gtk-doc gtk4.0-dev libgcrypt-dev libsecret-dev libxslt meson openssh-client p11-kit-dev vala " checkdepends=" bash dbus xvfb-run " subpackages=" $pkgname-dev $pkgname-lang $pkgname-base " source="https://download.gnome.org/sources/gcr/${pkgver%.*}/gcr-$pkgver.tar.xz" builddir="$srcdir/gcr-$pkgver" options="!check" # fix later after p11-kit fixes build() { abuild-meson \ -Db_lto=true \ -Dgtk_doc=false \ -Dgpg_path=/usr/bin/gpg2 \ -Dsystemd=disabled \ . output meson compile -C output } check() { XDG_RUNTIME_DIR="$(mktemp -d -p "$builddir")" \ dbus-run-session -- \ xvfb-run -a \ meson test -t10 --no-rebuild --print-errorlogs -C output } package() { depends="gcr-ssh-agent" DESTDIR="$pkgdir" meson install --no-rebuild -C output rm "$pkgdir"/usr/libexec/gcr-ssh-agent } base() { pkgdesc="$pkgdesc (base libraries)" depends="" amove usr/lib } sha512sums=" a91a5b0a7b62f7756dec2e7e19a59a4087a1423ccf24c5dd6d4a18de0a58fd91c5d5c131233360a3334c236b28ee94ec6889fcec1de85771a4b6a5daa5b9e203 gcr-4.1.0.tar.xz "