42 lines
980 B
Bash
42 lines
980 B
Bash
# Copyright 1999-2021 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
PYTHON_COMPAT=( python3_{8..10} )
|
|
|
|
DISTUTILS_USE_SETUPTOOLS=rdepend
|
|
|
|
inherit distutils-r1 desktop
|
|
|
|
DESCRIPTION="Official ProtonVPN Linux app"
|
|
HOMEPAGE="https://protonvpn.com https://github.com/ProtonVPN/linux-app"
|
|
SRC_URI="https://github.com/ProtonVPN/linux-app/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="GPL-3"
|
|
KEYWORDS="~amd64"
|
|
SLOT="0"
|
|
IUSE="appindicator"
|
|
RESTRICT="primaryuri"
|
|
|
|
RDEPEND="
|
|
x11-libs/gtk+:3
|
|
dev-python/pygobject[${PYTHON_USEDEP}]
|
|
dev-python/psutil[${PYTHON_USEDEP}]
|
|
dev-python/pycairo[${PYTHON_USEDEP}]
|
|
appindicator? ( dev-libs/libappindicator:3 )
|
|
net-vpn/protonvpn-nm-lib[${PYTHON_USEDEP}]
|
|
dev-python/python-systemd
|
|
"
|
|
|
|
DEPEND="${RDEPEND}"
|
|
|
|
S="${WORKDIR}/linux-app-${PV}"
|
|
|
|
DOCS=( README.md )
|
|
|
|
src_install() {
|
|
domenu protonvpn.desktop
|
|
doicon -s scalable protonvpn_gui/assets/icons/protonvpn-logo.png
|
|
distutils-r1_src_install
|
|
}
|