linamh/sys-boot/etcher/etcher-1.18.11.ebuild

43 lines
1.1 KiB
Bash
Raw Normal View History

2023-04-06 11:47:15 +02:00
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
2023-07-20 20:28:34 +02:00
EAPI=8
2023-04-06 11:47:15 +02:00
2023-07-20 20:28:34 +02:00
inherit unpacker
2023-04-06 11:47:15 +02:00
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"
SRC_URI="https://github.com/balena-io/${PN}/releases/download/v${PV}/balena-${PN}_${PV}_amd64.deb"
LICENSE="GPL2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE=""
DEPEND="dev-libs/nss
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}".desktop
sed -i "s/Icon\=balena\-etcher/Icon\=etcher/g" "${D}"usr/share/applications/balena-"${PN}".desktop
sed -i "s/\/balena\-etcher/\/balena\-etcher \-\-disable\-gpu\-sandbox/g" "${D}"usr/share/applications/balena-"${PN}".desktop
rm -rf "${D}"usr/share/doc
fperms 0755 /opt/balenaEtcher/balena-"${PN}" || die
}