# Copyright 2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit yarn DESCRIPTION="Create Electron app packages." HOMEPAGE="https://github.com/electron/asar" YARN_PKGS=( @electron/asar-3.2.17 wrappy-1.0.2 brace-expansion-1.1.11 commander-5.1.0 inflight-1.0.6 concat-map-0.0.1 glob-7.2.3 inherits-2.0.4 path-is-absolute-1.0.1 balanced-match-1.0.2 minimatch-3.1.2 once-1.4.0 fs.realpath-1.0.0 ) yarn_set_globals SRC_URI="${YARN_SRC_URI}" LICENSE="ISC MIT" KEYWORDS="~amd64" S="${WORKDIR}" src_install() { yarn_src_install fperms 0755 "/usr/$(get_libdir)/${PN}/node_modules/@electron/asar/bin/${PN}.js" dosym "../$(get_libdir)/${PN}/node_modules/@electron/asar/bin/${PN}.js" "/usr/bin/${PN}" }