add the official ProtonVPN GUI client

This commit is contained in:
Martin Sekera 2021-08-20 01:18:31 +02:00
parent b7c9dfe9dc
commit 65f0d312ab
4 changed files with 115 additions and 28 deletions

View file

@ -0,0 +1,42 @@
# 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
}