mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-11 08:03:16 -04:00
net-mail/hydroxide: add 0.2.28
Signed-off-by: Leonardo Hernández Hernández <leohdz172@proton.me>
This commit is contained in:
54
net-mail/hydroxide/hydroxide-0.2.28.ebuild
Normal file
54
net-mail/hydroxide/hydroxide-0.2.28.ebuild
Normal file
@@ -0,0 +1,54 @@
|
||||
# Copyright 2022-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module multiprocessing
|
||||
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/emersion/hydroxide.git"
|
||||
else
|
||||
inherit verify-sig
|
||||
SRC_URI="https://github.com/emersion/${PN}/releases/download/v${PV}/${P}.tar.gz
|
||||
verify-sig? ( https://github.com/emersion/${PN}/releases/download/v${PV}/${P}.tar.gz.sig )
|
||||
https://github.com/sevz17/go-deps/releases/download/${P}/${P}-deps.tar.xz
|
||||
"
|
||||
VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/usr/share/openpgp-keys/emersion.asc"
|
||||
BDEPEND+="verify-sig? ( sec-keys/openpgp-keys-emersion )"
|
||||
KEYWORDS="~amd64"
|
||||
fi
|
||||
|
||||
DESCRIPTION="A third-party, open-source ProtonMail CardDAV, IMAP and SMTP bridge"
|
||||
HOMEPAGE="https://github.com/emersion/hydroxide"
|
||||
|
||||
LICENSE="MIT BSD"
|
||||
SLOT="0"
|
||||
|
||||
src_unpack() {
|
||||
if [[ "${PV}" == "9999" ]]; then
|
||||
git-r3_src_unpack
|
||||
go-module_live_vendor
|
||||
else
|
||||
if use verify-sig; then
|
||||
verify-sig_verify_detached "${DISTDIR}"/"${P}".tar.gz{,.sig}
|
||||
fi
|
||||
go-module_src_unpack
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
ego build -v -x -p "$(makeopts_jobs)" ./cmd/hydroxide
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
dobin "${PN}"
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
elog ""
|
||||
elog "In order to use ${PN} you need to read"
|
||||
elog "https://github.com/emersion/hydroxide#installing"
|
||||
elog ""
|
||||
}
|
||||
Reference in New Issue
Block a user