diff options
Diffstat (limited to 'mail-mta/protonmail-bridge-bin/protonmail-bridge-bin-1.0.4.ebuild')
-rw-r--r-- | mail-mta/protonmail-bridge-bin/protonmail-bridge-bin-1.0.4.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/mail-mta/protonmail-bridge-bin/protonmail-bridge-bin-1.0.4.ebuild b/mail-mta/protonmail-bridge-bin/protonmail-bridge-bin-1.0.4.ebuild new file mode 100644 index 000000000000..b00b93b20070 --- /dev/null +++ b/mail-mta/protonmail-bridge-bin/protonmail-bridge-bin-1.0.4.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit rpm + +DESCRIPTION="Serves ProtonMail to IMAP/SMTP clients" +HOMEPAGE="https://protonmail.com/bridge/" +SRC_URI="https://protonmail.com/download/${P/-bin/}-1.x86_64.rpm" + +RESTRICT="bindist mirror" + +LICENSE="MIT protonmail-bridge-EULA" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="" +RDEPEND=" + app-crypt/libsecret + dev-libs/glib:2 + media-sound/pulseaudio + virtual/opengl +" + +S="${WORKDIR}" + +QA_PREBUILT="*" + +src_install() { + # Using doins -r would strip executable bits from all binaries + cp -pPR "${S}"/usr "${D}"/ || die "Failed to copy files" + + dosym "Desktop-Bridge" "/usr/bin/${PN}" || die + + cat <<-EOF > "${T}/50-${PN}" || die + SEARCH_DIRS_MASK="/usr/lib*/protonmail/bridge" + EOF + insinto /etc/revdep-rebuild + doins "${T}/50-${PN}" +} |