summaryrefslogtreecommitdiff
path: root/sys-boot/etcher/etcher-1.5.51.ebuild
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-06-30 18:19:44 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-06-30 18:19:44 +0100
commit7964b40e10f9f60afb954fed3ca0bd6edebd9a27 (patch)
tree493e3921b5784eeb8dad0dfc0497ab5f0c32ccb1 /sys-boot/etcher/etcher-1.5.51.ebuild
parentb52a78444db18f34533b0a9c394642507e6d802c (diff)
sys-boot/etcher : version bump
Diffstat (limited to 'sys-boot/etcher/etcher-1.5.51.ebuild')
-rw-r--r--sys-boot/etcher/etcher-1.5.51.ebuild41
1 files changed, 41 insertions, 0 deletions
diff --git a/sys-boot/etcher/etcher-1.5.51.ebuild b/sys-boot/etcher/etcher-1.5.51.ebuild
new file mode 100644
index 00000000..63e067f8
--- /dev/null
+++ b/sys-boot/etcher/etcher-1.5.51.ebuild
@@ -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/g" "${D}"usr/share/applications/balena-"${PN}"-electron.desktop
+ rm -rf "${D}"usr/share/doc
+ fperms 0755 /opt/balenaEtcher/balena-"${PN}"-electron || die
+}