This commit is contained in:
Mario Fetka
2022-09-28 13:53:04 +02:00
parent c846ee1e1d
commit 1bf994041f
12 changed files with 53 additions and 205 deletions

2
sys-boot/etcher/Manifest Normal file
View File

@@ -0,0 +1,2 @@
DIST balena-etcher-electron_1.7.9_amd64.deb 86767140 BLAKE2B 28408a987fc856217de5b9d41c235f97d25a76d08421870e31e84cf6c30c4dabe32c9e1aa0048fa11a74c55bd6fa69f3996662d959f44e8be8853d101c8684c4 SHA512 b7346d28bd1d989ba1c262febdc57f2f323a7c8eaf61e96ef9fff6b33c8ed2310b26deef0d599837aa5f6e6837b699b37f9c64dadb1bb119d1573abd7bd44625
EBUILD etcher-1.7.9.ebuild 998 BLAKE2B a0e280c510dd2c8b322401f71d1804f80cf1e53e4a9458833113152b109e83c5833288340c63f06470ecad5f2df22038d65e9e56735d001f4f46c1845887d51d SHA512 9371c1e0302dc51c6a5965ecd23e7ac915fa253c1f241e0f075423e0f984ece269b0367c21abc44c7142f6ecfd5835ecb609e10ed08de6c3cb69094b8db1b9d7

View File

@@ -0,0 +1,41 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit eutils unpacker
DESCRIPTION="Flash OS images to SD cards & USB drives, safely and easily."
HOMEPAGE="https://etcher.io/"
SRC_URI="https://github.com/balena-io/${PN}/releases/download/v${PV}/balena-${PN}-electron_${PV}_amd64.deb"
LICENSE="GPL2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="dev-libs/nss
gnome-base/gconf
media-libs/alsa-lib
sys-apps/lsb-release
x11-libs/gtk+:2
x11-libs/libXtst
x11-libs/libnotify"
RDEPEND="${DEPEND}"
RESTRICT="mirror strip"
S="${WORKDIR}"
src_unpack() {
unpack_deb ${A}
}
src_install() {
mv * "${D}" || die
sed -i "s/Utility/System/g" "${D}"usr/share/applications/balena-"${PN}"-electron.desktop
sed -i "s/Icon\=balena\-etcher\-electron/Icon\=etcher\-electron/g" "${D}"usr/share/applications/balena-"${PN}"-electron.desktop
rm -rf "${D}"usr/share/doc
fperms 0755 /opt/balenaEtcher/balena-"${PN}"-electron || die
}