# Contributor: Natanael Copa # Maintainer: Rasmus Thomsen pkgname=libsecret pkgver=0.20.2 pkgrel=0 pkgdesc="Library for storing and retrieving passwords and other secrets" url="https://wiki.gnome.org/Projects/Libsecret" arch="all" license="LGPL-2.0-or-later" makedepends="glib-dev intltool libxslt-dev docbook-xsl libgcrypt-dev gobject-introspection-dev vala meson" checkdepends="py3-dbus py3-gobject3 xvfb-run dbus-x11" options="!check" # gjs is in community now subpackages="$pkgname-static $pkgname-dev $pkgname-doc $pkgname-lang" source="https://download.gnome.org/sources/libsecret/${pkgver%.*}/libsecret-$pkgver.tar.xz" build() { meson \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --default-library=both \ --buildtype=plain \ -Dgtk_doc=false \ output ninja -C output } check() { xvfb-run ninja -C output test } package() { DESTDIR="$pkgdir" ninja -C output install } sha512sums="89143c8ccc8f6fa0cda2c98baef92e8cbf9b319a984826a09c527125e14712023ee65cada42a2c9232524528da8c1c3d2235ecbcb93e2f06e94121a601c22857 libsecret-0.20.2.tar.xz"