# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit gnome2-utils meson systemd udev

DESCRIPTION="An anti-spam program designed to work with phosh"
HOMEPAGE="https://gitlab.com/kop316/phosh-antispam"
SRC_URI="https://gitlab.com/kop316/phosh-antispam/-/archive/${PV}/${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm64"

RDEPEND="
	>=dev-libs/glib-2.44.0
	>=x11-libs/gtk+-3.22.0
	>=gui-libs/libadwaita-1.2.0
	>=net-voip/gnome-calls-41.0
"

DEPEND=""

src_install() {
	meson_src_install
}

pkg_postinst() {
	xdg_pkg_postinst
	gnome2_schemas_update
	xdg_icon_cache_update
}

pkg_postrm() {
	xdg_pkg_postrm
	gnome2_schemas_update
}