# Copyright 2026 Shin'ya Minazuki # This file will get removed in a subsequent commit, do not use EAPI=8 inherit xdg DESCRIPTION="Decentralized and secure messenger app (binary)" HOMEPAGE="https://delta.chat" SRC_URI="https://download.delta.chat/desktop/v${PV}/${PN%-bin}-${PV}.tar.gz" S="${WORKDIR}/${PN%-bin}-${PV}" LICENSE="GPL-3" SLOT="0" KEYWORDS="-* ~amd64" DELTACHAT_HOME="opt/${PN%-bin}" IUSE="suid" src_install() { cd "${ED}" einfo "Creating directories" dodir "/opt" dodir "/usr/bin" dodir "/usr/share/applications" einfo "Copying directories" cp -r ${WORKDIR}/deltachat-desktop-${PV} ${DELTACHAT_HOME} einfo "Creating symbolic links" dosym "../../${DELTACHAT_HOME}/${PN%-bin}" "usr/bin/${PN%-bin}" use suid && fperms 4711 "/${DELTACHAT_HOME}/chrome-sandbox" einfo "Creating .desktop files" cp "${FILESDIR}/deltachat.desktop" "usr/share/applications" cp "${FILESDIR}/delta-chat.svg" "${ED}/${DELTACHAT_HOME}" }