# Copyright 1999-2018 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 SRC_URI_BASE="https://github.com/electron/electron/releases/download" DESCRIPTION="Cross platform application development framework based on web technologies" HOMEPAGE="https://electron.atom.io" SRC_URI="amd64? ( ${SRC_URI_BASE}/v${PV}/${PN/-bin}-v${PV}-linux-x64.zip -> ${P}-x64.zip ) x86? ( ${SRC_URI_BASE}/v${PV}/${PN/-bin}-v${PV}-linux-ia32.zip -> ${P}-ia32.zip ) arm? ( ${SRC_URI_BASE}/v${PV}/${PN/-bin}-v${PV}-linux-arm.zip -> ${P}-arm.zip ) arm64? ( ${SRC_URI_BASE}/v${PV}/${PN/-bin}-v${PV}-linux-arm64.zip -> ${P}-arm64.zip )" RESTRICT="mirror" LICENSE="MIT" SLOT="2.0" KEYWORDS="-* ~amd64 ~x86 ~arm ~arm64" RDEPEND="dev-libs/nss dev-libs/expat dev-libs/libappindicator dev-libs/nss gnome-base/gconf media-libs/alsa-lib media-libs/libpng net-print/cups sys-libs/zlib virtual/opengl virtual/ttf-fonts x11-libs/cairo x11-libs/gtk+:3 x11-libs/libnotify x11-libs/libxcb x11-libs/libXtst x11-libs/pango" DEPEND="app-arch/unzip" S="${WORKDIR}" MY_PN="${PN}-${SLOT}" QA_PRESTRIPPED="/opt/${MY_PN}/libffmpeg.so /opt/${MY_PN}/libnode.so /opt/${MY_PN}/electron" src_install() { exeinto "/opt/${MY_PN}" doexe electron insinto "/opt/${MY_PN}" doins -r locales resources doins ./*.pak \ icudtl.dat \ natives_blob.bin \ snapshot_blob.bin \ libnode.so \ libffmpeg.so dosym "../../opt/${MY_PN}/electron" "/usr/bin/electron-${SLOT}" }