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

EAPI=7

DESCRIPTION="Plugin for libpurple implementing OMEMO"
HOMEPAGE="https://github.com/gkdr/lurch"

SRC_URI="https://github.com/gkdr/lurch/releases/download/v0.6.5/lurch-${PV}-src.tar.gz -> ${P}.tar.gz"
RESTRICT="mirror"
KEYWORDS="~amd64 ~x86"

LICENSE="GPL-3"
SLOT="0"
IUSE=""

RDEPEND="
	net-im/pidgin
	dev-libs/mxml
	dev-libs/libxml2
	dev-db/sqlite
	dev-libs/libgcrypt:0
"
DEPEND="${RDEPEND}"

S="${WORKDIR}"

src_compile(){
	emake
}

src_install(){
	emake DESTDIR="${D}" install || die
}