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

EAPI=8

DESCRIPTION="OpenSMTPD filter for signing emails with DKIM"
HOMEPAGE="https://imperialat.at/dev/libopensmtpd/"
SRC_URI="https://imperialat.at/releases/${P}.tar.gz"

LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

DEPEND="dev-libs/libevent:="
RDEPEND="${DEPEND}"
BDEPEND="${DEPEND}
	app-text/mandoc"

src_compile() {
	emake -f Makefile.gnu
}

src_install() {
	emake DESTDIR="${D}" LIBDIR="/usr/$(get_libdir)" -f Makefile.gnu install
}