# Forked from Alpine to apply Purism's mobile patches pkgname=gnome-contacts pkgver=9999_git20210711 pkgrel=0 _commit="2357edb60111f19da83630dc08d009451b3524f5" pkgdesc="A contacts manager for GNOME" url="https://wiki.gnome.org/Apps/Contacts" arch="all !s390x !mips !mips64" # libhandy is missing license="GPL-2.0-or-later" makedepends="meson vala folks-dev libgee-dev glib-dev gnome-desktop-dev gnome-online-accounts-dev cheese-dev evolution-data-server-dev telepathy-glib-dev libhandy1-dev gtk+3.0-dev" checkdepends="appstream-glib desktop-file-utils" subpackages="$pkgname-lang $pkgname-doc" source=" https://source.puri.sm/Librem5/debs/gnome-contacts/-/archive/$_commit/gnome-contacts-$_commit.tar.bz2 " builddir="$srcdir/$pkgname-$_commit" prepare() { default_prepare grep "\.patch$" debian/patches/series \ | xargs -I {} -t -r -n1 patch -p1 -i debian/patches/{} } build() { meson \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --buildtype=plain \ . output ninja -C output } check() { ninja -C output test } package() { DESTDIR="$pkgdir" ninja -C output install } sha512sums=" 8457b24dd135c986619bdf9ac42c46ba29a5f6b4a511b92c485db9c12ea4250dc42c09ceb1dd30287adc3263ead94c779999d39ed95146a1449d6cd2ae68d262 gnome-contacts-2357edb60111f19da83630dc08d009451b3524f5.tar.bz2 "