42 lines
958 B
Bash
Executable file
42 lines
958 B
Bash
Executable file
# Copyright 2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit xdg-utils
|
|
|
|
DESCRIPTION="A browser and wallet for LBRY, the decentralized, user-controlled content marketplace."
|
|
HOMEPAGE="https://lbry.tv/"
|
|
SRC_URI="https://github.com/lbryio/${PN}/archive/v${PV}.zip"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE=""
|
|
|
|
S="${WORKDIR}/${PN}-${PV}"
|
|
D="${S}/dist/electron/"
|
|
|
|
DEPEND="sys-apps/yarn >=net-libs/nodejs-10.19.0"
|
|
RDEPEND="${DEPEND}"
|
|
BDEPEND=""
|
|
|
|
RESTRICT=network-sandbox
|
|
|
|
src_prepare(){
|
|
default
|
|
yarn install || die "Failed to install yarn dependencies"
|
|
}
|
|
|
|
src_compile() {
|
|
yarn --verbose compile:electron || die "Error building electron"
|
|
# yarn --verbose dev || die "Hell no"
|
|
yarn --verbose build || die "Error building Appimage"
|
|
}
|
|
|
|
src_install(){
|
|
declare LBRY_APPIMAGE=${S}/dist/electron/LBRY_${PV}.AppImage
|
|
mv "${LBRY_APPIMAGE}" "./${PN}"
|
|
dobin ${PN}
|
|
newicon static/img/favicon.png
|
|
}
|