diff options
author | Leonardo Hernández Hernández <leohdz172@proton.me> | 2024-07-09 21:33:26 -0600 |
---|---|---|
committer | Leonardo Hernández Hernández <leohdz172@proton.me> | 2024-07-09 21:33:26 -0600 |
commit | f516658f978a66b58689d88e30df5bba5a690e60 (patch) | |
tree | 6c5000220ae365a52fe85b08d6cdea7757b70438 /net-mail/hydroxide/hydroxide-0.2.29.ebuild | |
parent | net-mail/hydroxide: drop 0.2.23, 0.2.24, 0.2.26 (diff) | |
download | guru-f516658f978a66b58689d88e30df5bba5a690e60.tar.gz guru-f516658f978a66b58689d88e30df5bba5a690e60.tar.bz2 guru-f516658f978a66b58689d88e30df5bba5a690e60.zip |
net-mail/hydroxide: add 0.2.29
Signed-off-by: Leonardo Hernández Hernández <leohdz172@proton.me>
Diffstat (limited to 'net-mail/hydroxide/hydroxide-0.2.29.ebuild')
-rw-r--r-- | net-mail/hydroxide/hydroxide-0.2.29.ebuild | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/net-mail/hydroxide/hydroxide-0.2.29.ebuild b/net-mail/hydroxide/hydroxide-0.2.29.ebuild new file mode 100644 index 000000000..6b050e289 --- /dev/null +++ b/net-mail/hydroxide/hydroxide-0.2.29.ebuild @@ -0,0 +1,54 @@ +# Copyright 2022-2024 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="/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 "" +} |