Add net-im/deltachat-desktop-bin
Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
This commit is contained in:
2
net-im/deltachat-desktop-bin/Manifest
Normal file
2
net-im/deltachat-desktop-bin/Manifest
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
DIST deltachat-desktop-2.48.0-arm64.tar.gz 145067886 BLAKE2B 216229f5213e32870c00c9babdd6fb92d06e13e069aca17a5b86884c66c4bdd48ce3d6312339d629104c1b2af1f7782fcca15aaacafd4949b257381c5549d66e SHA512 f3c1f52c5b6afe0afcf63a8940424c1f3af3569c4d6889fe84ad4e00b3da69dabc93762d7ef7cec941d4036363a7baff560596d48fa6ad8a288be13c5f52ead9
|
||||||
|
DIST deltachat-desktop-2.48.0.tar.gz 145311040 BLAKE2B 07c4f85bb61312d5c0905b910492fe8fc412ca570884e7b7f02a24dbdea70efcae25f856c517319fc08faddff61d72ffdb26516c97fc061e782727943eb65174 SHA512 cf2d46f7ef008810a9be24c3dcf4c53d1e55ab7d4e4ddf1d7514e02a335236a67f255bdbbba6be72e7692bcdd797e991078f4a2ea38be6c1329c69641c25accb
|
||||||
@@ -0,0 +1,113 @@
|
|||||||
|
# Copyright 2026 Shin'ya Minazuki
|
||||||
|
EAPI=8
|
||||||
|
|
||||||
|
inherit desktop xdg
|
||||||
|
|
||||||
|
DESCRIPTION="Decentralized and secure messenger app (binary)"
|
||||||
|
HOMEPAGE="https://delta.chat"
|
||||||
|
|
||||||
|
LICENSE="GPL-3"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="-* ~amd64 ~arm64"
|
||||||
|
|
||||||
|
DC_PN="${PN%-bin}"
|
||||||
|
|
||||||
|
SRC_URI="
|
||||||
|
amd64? ( https://download.delta.chat/desktop/v${PV}/${DC_PN}-${PV}.tar.gz )
|
||||||
|
arm64? ( https://download.delta.chat/desktop/v${PV}/${DC_PN}-${PV}-arm64.tar.gz )
|
||||||
|
"
|
||||||
|
|
||||||
|
S="${WORKDIR}"
|
||||||
|
|
||||||
|
DELTACHAT_HOME="opt/${DC_PN}"
|
||||||
|
IUSE="suid"
|
||||||
|
|
||||||
|
|
||||||
|
QA_PREBUILT="
|
||||||
|
opt/deltachat-desktop/deltachat-desktop
|
||||||
|
opt/deltachat-desktop/libEGL.so
|
||||||
|
opt/deltachat-desktop/libffmpeg.so
|
||||||
|
opt/deltachat-desktop/libGLESv2.so
|
||||||
|
opt/deltachat-desktop/libvk_swiftshader.so
|
||||||
|
opt/deltachat-desktop/libvulkan.so.1
|
||||||
|
opt/deltachat-desktop/resources/*
|
||||||
|
"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=app-accesibility/at-spi2-core-2.46.0:2[X]
|
||||||
|
dev-libs/expat
|
||||||
|
dev-libs/fribidi
|
||||||
|
dev-libs/glib:2
|
||||||
|
dev-libs/libpcre2
|
||||||
|
dev-libs/libunistring
|
||||||
|
dev-libs/nettle
|
||||||
|
dev-libs/nspr
|
||||||
|
dev-libs/nss
|
||||||
|
dev-libs/wayland
|
||||||
|
media-gfx/graphite2
|
||||||
|
media-libs/alsa-lib
|
||||||
|
media-libs/fontconfig
|
||||||
|
media-libs/freetype
|
||||||
|
media-libs/harfbuzz
|
||||||
|
media-libs/libpng
|
||||||
|
net-dns/libidn2
|
||||||
|
net-libs/gnutls
|
||||||
|
net-print/cups
|
||||||
|
sys-apps/dbus
|
||||||
|
sys-libs/glibc
|
||||||
|
virtual/jpeg
|
||||||
|
virtual/libudev
|
||||||
|
virtual/zlib
|
||||||
|
x11-libs/cairo
|
||||||
|
x11-libs/gdk-pixbuf:2
|
||||||
|
x11-libs/gtk+:3[X]
|
||||||
|
x11-libs/libX11
|
||||||
|
x11-libs/libXau
|
||||||
|
x11-libs/libXcomposite
|
||||||
|
x11-libs/libXdamage
|
||||||
|
x11-libs/libXdmcp
|
||||||
|
x11-libs/libXext
|
||||||
|
x11-libs/libXfixes
|
||||||
|
x11-libs/libXrandr
|
||||||
|
x11-libs/libdrm
|
||||||
|
x11-libs/libxcb
|
||||||
|
x11-libs/libxkbcommon
|
||||||
|
x11-libs/pango
|
||||||
|
x11-libs/pixman
|
||||||
|
"
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
if use amd64; then
|
||||||
|
cd deltachat-desktop-${PV} || die
|
||||||
|
elif use arm64; then
|
||||||
|
cd deltachat-desktop-${PV}-arm64 || die
|
||||||
|
fi
|
||||||
|
|
||||||
|
newicon "${FILESDIR}/delta-chat.svg" "${DC_PN}.svg"
|
||||||
|
|
||||||
|
insinto "/opt/${DC_PN}/locales"
|
||||||
|
doins locales/*.pak
|
||||||
|
|
||||||
|
insinto "/opt/${DC_PN}/resources"
|
||||||
|
doins -r resources/*.asar*
|
||||||
|
|
||||||
|
insinto "/opt/${DC_PN}"
|
||||||
|
doins *.pak *.bin *.dat
|
||||||
|
exeinto "/opt/${DC_PN}"
|
||||||
|
doexe *.so *.so.* "${DC_PN}"
|
||||||
|
|
||||||
|
dosym -r "/opt/${DC_PN}/${DC_PN}" "/usr/bin/${DC_PN}"
|
||||||
|
|
||||||
|
rm -rf "${DELTACHAT_HOME}/resources/app.asar.unpacked/node_modules/@parcel/watcher-win32*"
|
||||||
|
rm -rf "${DELTACHAT_HOME}/resources/app.asar.unpacked/node_modules/@parcel/watcher-darwin*"
|
||||||
|
if use amd64; then
|
||||||
|
rm -rf "${DELTACHAT_HOME}/resources/app.asar.unpacked/node_modules/@parcel/watcher-linux-arm64*"
|
||||||
|
rm -rf "${DELTACHAT_HOME}/resources/app.asar.unpacked/node_modules/@parcel/watcher-linux-x64-musl*"
|
||||||
|
elif use arm64; then
|
||||||
|
rm -rf "${DELTACHAT_HOME}/resources/app.asar.unpacked/node_modules/@parcel/watcher-linux-x64*"
|
||||||
|
fi
|
||||||
|
|
||||||
|
make_desktop_entry "${DC_PN} --enable-features=WaylandWindowDecorations --ozone-platform-hint=auto %U" \
|
||||||
|
"Delta Chat" "${DC_PN}" "Network;InstantMessaging;" \
|
||||||
|
"StartupWMClass=DeltaChat"
|
||||||
|
}
|
||||||
@@ -0,0 +1,34 @@
|
|||||||
|
# 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}"
|
||||||
|
}
|
||||||
1
net-im/deltachat-desktop-bin/files/delta-chat.svg
Normal file
1
net-im/deltachat-desktop-bin/files/delta-chat.svg
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="48" height="48" version="1.1"><defs><linearGradient id="a" x1="31.957" x2="-45.041" y1="29.751" y2="-18.592" gradientTransform="matrix(.93766 0 0 .93766 1.5426 1.72)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#364e59"/><stop offset="1" stop-color="#364e59" stop-opacity="0"/></linearGradient></defs><g><path fill="#fff" stroke="#000" stroke-linejoin="round" stroke-opacity=".439" stroke-width=".574" d="m24.015 1.287c-12.549 0-22.728 10.179-22.728 22.728s10.179 22.728 22.728 22.728c14.338-0.34288 9.6144-4.7027 23.698 0.96916-7.5455-13.002-1.083-13.33-0.96916-23.698 0-12.549-10.179-22.728-22.728-22.728z"/><path fill="url(#a)" d="m23.982 5.3106c-10.336 0.12578-18.72 8.6194-18.72 18.965 0 10.346 8.384 18.635 18.72 18.51 9.8277-0.03951 7.5168-5.4897 18.38-0.44319-5.9508-9.2961 0.20175-10.534 0.34034-18.522 0-10.346-8.384-18.635-18.72-18.51z"/><g fill="#fff"><path fill="#fff" d="m21.689 23.636q-1.028-1.1513-2.8578-2.755-2.0148-1.7681-2.7139-2.7755-0.69902-1.028-0.69902-2.241 0-1.8092 1.6859-2.8372 1.6859-1.0485 4.3997-1.0485t4.7287 0.92518q2.0354 0.92518 2.0354 2.5494 0 0.78126-0.49343 1.2952-0.49343 0.51399-1.1513 0.51399-0.94574 0-2.2204-1.4186-1.2952-1.4392-2.1999-2.0148-0.88406-0.59622-2.0765-0.59622-1.5214 0-2.5083 0.67846-0.9663 0.67846-0.9663 1.727 0 0.98686 0.80182 1.8504t4.1325 3.1456q3.5568 2.4466 5.0165 3.8241 1.4803 1.3775 2.4055 3.3512 0.92518 1.9737 0.92518 4.1736 0 3.8652-2.7344 6.8258-2.7139 2.94-6.3529 2.94-3.3101 0-5.5922-2.3643-2.2821-2.3643-2.2821-6.3118 0-3.8035 2.5083-6.3529 2.5288-2.5494 6.209-3.0839zm0.90462 0.94574q-5.9006 0.9663-5.9006 8.1004 0 3.6802 1.4597 5.7155 1.4803 2.0354 3.4334 2.0354 2.0354 0 3.3512-1.9532 1.3158-1.9737 1.3158-5.3249 0-4.852-3.6596-8.5733z" transform="scale(1.1122 .89909)"/></g></g></svg>
|
||||||
|
After Width: | Height: | Size: 1.8 KiB |
7
net-im/deltachat-desktop-bin/files/deltachat.desktop
Normal file
7
net-im/deltachat-desktop-bin/files/deltachat.desktop
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
[Desktop Entry]
|
||||||
|
Name=Delta Chat
|
||||||
|
Comment=Decentralized private messenger with chat-shared tools and games
|
||||||
|
Exec=/usr/bin/deltachat-desktop
|
||||||
|
Icon=/opt/deltachat-desktop/delta-chat.svg
|
||||||
|
Categories=Network
|
||||||
|
Type=Application
|
||||||
13
net-im/deltachat-desktop-bin/metadata.xml
Normal file
13
net-im/deltachat-desktop-bin/metadata.xml
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>shinyoukai@laidback.moe</email>
|
||||||
|
<name>Shin'ya Minazuki</name>
|
||||||
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">deltachat/deltachat-desktop</remote-id>
|
||||||
|
<maintainer>Delta Chat developers</maintainer>
|
||||||
|
<bugs-to>https://github.com/deltachat/deltachat-desktop/issues</bugs-to>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
||||||
Reference in New Issue
Block a user