diff --git a/sys-boot/etcher-bin/Manifest b/sys-boot/etcher-bin/Manifest index d5c7199662..96eb817ec2 100644 --- a/sys-boot/etcher-bin/Manifest +++ b/sys-boot/etcher-bin/Manifest @@ -1 +1,2 @@ DIST etcher-bin-2.1.2.linux-amd64.tar.gz 118800616 BLAKE2B 1caf57797b1d939b334cd9bd8bd259e86e8d2a2dcae50780d3616b537cdd0f23e8f353579eb6398f466bed71de9ee6890dc85010fc36f84d840a4388a703c279 SHA512 db9594b5e2ff3fe338ae8558a055e985770c44badf8b3ac0db5075363a386f06c35b54cf32b62532ccf840050e8910cfcb8b16316a60285e5b62869cfc093197 +DIST etcher-bin-2.1.4.linux-amd64.tar.gz 123924010 BLAKE2B 882e989d8f391da0c1c5d52aa5dd9d3b14353bbeeafba0b59e3202f0dd21e163457a82bbfbbb6daf2e39e9bf347b5c13421192f91827938d35b2c34bfaceea89 SHA512 e3a9a1c51409092fb8a182f8ed4eed214ef4f3217d7d078d40ec54c0f20795848fb18e80b02f5c0816bbbc09221cba4cdb3307744f8e01ea85ad3fada13f131f diff --git a/sys-boot/etcher-bin/etcher-bin-2.1.4.ebuild b/sys-boot/etcher-bin/etcher-bin-2.1.4.ebuild new file mode 100644 index 0000000000..48851d41fa --- /dev/null +++ b/sys-boot/etcher-bin/etcher-bin-2.1.4.ebuild @@ -0,0 +1,61 @@ +# Distributed under the terms of the GNU General Public License v2 +# Autogen by MARK Devkit + +EAPI=7 +inherit desktop eutils electron unpacker pax-utils xdg + +DESCRIPTION="Flash OS images to SD cards & USB drives, safely and easily." +HOMEPAGE="https://etcher.io/" +SRC_URI="https://github.com/balena-io/etcher/releases/download/v2.1.4/balena-etcher_2.1.4_amd64.deb -> etcher-bin-2.1.4.linux-amd64.tar.gz" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="*" +# Commons depends +CDEPEND="media-libs/libpng + x11-libs/gtk+ + x11-libs/cairo + x11-libs/libXtst + sys-apps/lsb-release + +" +RDEPEND="${CDEPEND} + x11-libs/libnotify + x11-libs/libXScrnSaver + dev-libs/nss + +" +DEPEND="${CDEPEND} +" +src_unpack() { + # etcher does not use a containing folder(deb archive) + # manual intervention required + install -d "${WORKDIR}/${P}" + S="${WORKDIR}/${P}" + cd "${S}" || die "cd into target directory ${S} failed" + unpack_deb "${A}" +} +src_install() { + local instdir="/opt/balenaEtcher" + local balenabin="balena-etcher" + insinto ${instdir} + doins -r * + dosym "${instdir}/${balenabin}" "/usr/bin/etcher" || die + make_wrapper "etcher" "${instdir}/${balenabin}" || die + # only contains changelog" + rm -rf "${D}/usr/share/doc" || die + # use own desktop file + rm -fR "${D}/usr/share/applications" || die + domenu "${FILESDIR}/etcher.desktop" || die + # correct permissions of install components + fperms a+x "${instdir}/usr/bin/${balenabin}" || die + pax-mark m "${instdir}/usr/bin/${balenabin}" || die +} +pkg_postinst() { + xdg_pkg_postinst +} +pkg_postrm() { + xdg_pkg_postrm +} + + +# vim: filetype=ebuild