new ebuild: dev-embedded/esphome-desktop-bin
yandex-music / check-and-update (push) Successful in 2m19s
github-release / check-and-update (push) Successful in 28s
esphome-desktop-bin / update (push) Successful in 28s
github-release / check-and-update (push) Successful in 30s
opencode-desktop-bin / update (push) Successful in 31s
yandex-music / check-and-update (push) Successful in 2m19s
github-release / check-and-update (push) Successful in 28s
esphome-desktop-bin / update (push) Successful in 28s
github-release / check-and-update (push) Successful in 30s
opencode-desktop-bin / update (push) Successful in 31s
This commit is contained in:
@@ -0,0 +1,86 @@
|
||||
# Copyright 2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit desktop unpacker xdg
|
||||
|
||||
DESCRIPTION="Desktop application for ESPHome"
|
||||
HOMEPAGE="
|
||||
https://esphome.io/
|
||||
https://github.com/esphome/esphome-desktop
|
||||
"
|
||||
SRC_URI="
|
||||
amd64? (
|
||||
https://github.com/esphome/esphome-desktop/releases/download/v${PV}/ESPHome.Device.Builder_${PV}_amd64.deb
|
||||
-> ${P}-amd64.deb
|
||||
)
|
||||
"
|
||||
S="${WORKDIR}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64"
|
||||
RESTRICT="mirror strip"
|
||||
|
||||
QA_PREBUILT="*"
|
||||
|
||||
RDEPEND="
|
||||
dev-libs/glib:2
|
||||
dev-libs/libayatana-appindicator
|
||||
net-libs/libsoup:3.0
|
||||
net-libs/webkit-gtk:4.1
|
||||
sys-apps/dbus
|
||||
x11-libs/cairo
|
||||
x11-libs/gdk-pixbuf:2
|
||||
x11-libs/gtk+:3
|
||||
"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# Mirror the AppImage layout: bin/esphome-desktop resolves its resources
|
||||
# as ../lib/esphome-desktop, so the entire bundle can live under /opt.
|
||||
mkdir -p "${S}/opt/esphome-desktop/bin" \
|
||||
"${S}/opt/esphome-desktop/lib" || die
|
||||
mv "${S}/usr/bin/esphome-desktop" \
|
||||
"${S}/opt/esphome-desktop/bin/esphome-desktop" || die
|
||||
mv "${S}/usr/lib/ESPHome Device Builder" \
|
||||
"${S}/opt/esphome-desktop/lib/esphome-desktop" || die
|
||||
|
||||
# Keep the installed desktop file name space-free.
|
||||
mv "${S}/usr/share/applications/ESPHome Device Builder.desktop" \
|
||||
"${S}/usr/share/applications/esphome-desktop.desktop" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
exeinto /opt/esphome-desktop/bin
|
||||
doexe opt/esphome-desktop/bin/esphome-desktop
|
||||
|
||||
insinto /opt/esphome-desktop/lib
|
||||
doins -r opt/esphome-desktop/lib/esphome-desktop
|
||||
# doins defaults to 0644; the bundled interpreter and entry points
|
||||
# must remain executable.
|
||||
fperms -R 0755 /opt/esphome-desktop/lib/esphome-desktop/python/bin
|
||||
|
||||
dosym ../../opt/esphome-desktop/bin/esphome-desktop /usr/bin/esphome-desktop
|
||||
|
||||
domenu usr/share/applications/esphome-desktop.desktop
|
||||
|
||||
insinto /usr/share/icons
|
||||
doins -r usr/share/icons/hicolor
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
|
||||
elog "Install dev-vcs/git if you want to use external components,"
|
||||
elog "remote github:// packages, voice models, or other features that"
|
||||
elog "clone dependencies."
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_desktop_database_update
|
||||
xdg_icon_cache_update
|
||||
}
|
||||
Reference in New Issue
Block a user