diff --git a/net-im/deltachat-rpc-server-bin/deltachat-rpc-server-bin-2.49.0.ebuild b/net-im/deltachat-rpc-server-bin/deltachat-rpc-server-bin-2.49.0.ebuild new file mode 100644 index 0000000..f400e82 --- /dev/null +++ b/net-im/deltachat-rpc-server-bin/deltachat-rpc-server-bin-2.49.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 2026 Shin'ya Minazuki +EAPI=8 + +DESCRIPTION="Delta Chat JSON-RPC server (binary)" +HOMEPAGE="https://delta.chat" +SRC_URI=" + amd64? ( https://github.com/chatmail/core/releases/download/v${PV}/deltachat-rpc-server-x86_64-linux -> ${P}-amd64 ) + arm? ( https://github.com/chatmail/core/releases/download/v${PV}/deltachat-rpc-server-armv7l-linux -> ${P}-arm ) + arm64? ( https://github.com/chatmail/core/releases/download/v${PV}/deltachat-rpc-server-aarch64-linux -> ${P}-arm64 ) + x86? ( https://github.com/chatmail/core/releases/download/v${PV}/deltachat-rpc-server-i686-linux -> ${P}-x86 ) +" +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~x86" + +# In the case that a source-built release happens +# Coming from me, it is unlikely. +DEPEND="!net-im/deltachat-rpc-server" +RDEPEND="${DEPEND}" +BDEPEND="" + +RESTRICT="mirror" +S="${WORKDIR}" + +src_install() { + if use amd64; then + einfo + newbin ${P}-amd64 ${PN%-bin} + elif use arm; then + newbin ${P}-arm ${PN%-bin} + elif use arm64; then + newbin ${P}-arm64 ${PN%-bin} + elif use x86; then + newbin ${P}-x86 ${PN%-bin} + fi +}