phosh-arch/gnome-contacts-mobile/PKGBUILD
2024-08-29 13:16:02 -07:00

75 lines
1.6 KiB
Bash

# Maintainer: Danct12 <danct12@disroot.org>
# Contributor: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: Ionut Biru <ibiru@archlinux.org>
pkgname=gnome-contacts-mobile
_pkgname=gnome-contacts
pkgver=46
pkgrel=1
pkgdesc="Contacts Manager for GNOME - Forked for Purism patches"
url="https://wiki.gnome.org/Apps/Contacts"
arch=(x86_64 armv7h aarch64)
license=(GPL-2.0-or-later)
depends=(
cairo
dconf
evolution-data-server
folks
gdk-pixbuf2
glib2
gnome-online-accounts
gtk4
hicolor-icon-theme
libadwaita
libgee
libgoa
libportal
libportal-gtk4
pango
qrencode
)
makedepends=(
appstream-glib
git
gobject-introspection
meson
vala
)
provides=(gnome-contacts)
conflicts=(gnome-contacts)
_commit="466925e6e797c62dc0ce2c01e1bca3f85c187edf" # tags/45.1^0
source=("git+https://gitlab.gnome.org/GNOME/gnome-contacts.git#commit=$_commit"
'0001-ContactSheet-Add-make-call-and-send-sms-button.patch')
b2sums=('SKIP'
'fa242d8e587486496502cafbb565423752c7f3d49c15bc364a26f64bb81ddbe070f900fa68c8c24d863a894123416ecef7b9b9902d2acbe077523a036d3ccf5c')
pkgver() {
cd $_pkgname
git describe --tags | sed 's/-/+/g'
}
#prepare() {
# cd $_pkgname
# local src
# for src in "${source[@]}"; do
# src="${src%%::*}"
# src="${src##*/}"
# [[ $src = *.patch ]] || continue
# echo "Applying patch $src..."
# patch -Np1 < "../$src"
# done
#}
build() {
arch-meson $_pkgname build
meson compile -C build
}
check() {
meson test -C build --print-errorlogs
}
package() {
meson install -C build --destdir "$pkgdir"
}