Skip to content
This repository has been archived by the owner on Sep 25, 2024. It is now read-only.

Added blackPanther OS to Readme #97

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,17 @@ The ProtonVPN GUI is currently still an <u>experimental interface</u>. It requir
|Ubuntu/Linux Mint/Debian and derivatives | `sudo apt install -y python3-gi python3-gi-cairo gir1.2-gtk-3.0` |
|OpenSUSE/SLES | `sudo zypper install python3-gobject python3-gobject-Gdk typelib-1_0-Gtk-3_0 libgtk-3-0` |
|Arch Linux/Manjaro | `sudo pacman -S python-gobject gtk3` |
|blackPanther OS | `autorequires via official rpm package (for devel:installing python3-gobject3 libgtk+3 lib64gtk-gir3.0)` |

#### ProtonVPN Tray dependencies

| **Distro** | **Command** |
|:----------------------------------------|:----------------------------------------------------------------------------------------------------------------|
|Fedora/CentOS/RHEL | `sudo dnf install -y libappindicator-gtk3 libnotify` |
|Ubuntu/Linux Mint/Debian and derivatives | `sudo apt install -y gir1.2-appindicator3 libnotify-bin` |
|Ubuntu/Linux Mint/Debian and derivatives | `sudo apt install -y gir1.2-appindicator3 libnotify-bin` |
|OpenSUSE/SLES | `sudo zypper install libappindicator-gtk3 libnotify` |
|Arch Linux/Manjaro | `sudo pacman -S libappindicator-gtk3 libnotify` |
|blackPanther OS | `autorequires via official rpm package (for devel:installing lib64appindicator3_1 lib64appindicator3-gir0.1)` |

**NOTE:**
Gnome users will need to install an additional extension for this to work: <a href="https://extensions.gnome.org/extension/615/appindicator-support/"> KStatusNotifierItem/AppIndicator Support</a>
Expand All @@ -120,6 +122,7 @@ If you would like to use `pkexec` instead of the terminal (or alter `visudo`), t
|Ubuntu/Linux Mint/Debian and derivatives | `sudo apt install -y libpolkit-agent-1-0` |
|OpenSUSE/SLES | `sudo zypper install polkit` |
|Arch Linux/Manjaro | `sudo pacman -S polkit` |
|blackPanther OS | `autorequires via official rpm package (for devel:installing polkit polkit-kde-agent)` |

## Installing ProtonVPN Linux GUI

Expand All @@ -128,7 +131,7 @@ If you would like to use `pkexec` instead of the terminal (or alter `visudo`), t
- Ubuntu derivatives: To-do
- OpenSUSE/SLES: To-do
- Arch Linux/Manjaro: <a href="https://aur.archlinux.org/packages/protonvpn-linux-gui/" target="_blank">Available at AUR</a>

- blackPanther OS : `installing protonvpn-gui`

### PIP based

Expand Down Expand Up @@ -173,6 +176,7 @@ If you would like to run the the GUI within a virtual environment (for either de
|Ubuntu/Linux Mint/Debian and derivatives | `sudo apt install libcairo2-dev libgirepository1.0-dev pkg-config` |
|OpenSUSE/SLES | `sudo zypper install cairo-devel gobject-introspection-devel python3-cairo-devel pkg-config` |
|Arch Linux/Manjaro | `sudo pacman -S cairo base-devel gobject-introspection pkgconf` |
|blackPanther OS | `installing cairo-devel python3-cairo-devel gobject-introspection pkgconf` |

1. `git clone https://github.com/ProtonVPN/linux-gui`
2. `cd linux-gui`
Expand Down
94 changes: 94 additions & 0 deletions protonvpn-gui.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
%define name protonvpn-gui
%define Summary Gtk3 GUI for ProtonVPN.
%define Summary_hu Gtk3 grafikus intgerfész ProtonVPN-hez
%define sourcetype tar.xz
%define version 2.1.1

Name: %name
Summary: %Summary
Summary(hu): %Summary_hu
Version: %version
Release: %mkrel 1
License: GPL2
Distribution: blackPanther OS
Vendor: blackPanther Europe
Packager: Charles K Barcza <[email protected]>
URL: https://github.com/ProtonVPN/linux-gui
Group: System/Network
Source0: %name-%version.%sourcetype
Buildroot: %_tmppath/%name-%version-%release-root
BuildArch: noarch
BuildRequires: python3-setuptools
BuildRequires: python3
Requires: python3-requests >= 2.23.0
Requires: protonvpn-cli >= 2.2.2
Requires: python3-configparser >= 4.0.2
Requires: python3-gobject3
Requires: %{_lib}appindicator3_1 libnotify
Provides: protonvpn-linux-gui = %version

%description
Python3-Gtk3 graphical user interface for ProtonVPN service.


%files
%defattr(-,root,root)
%_bindir/%name
%_bindir/*-tray
%python3_sitelib/linux_gui
%python3_sitelib/protonvpn_gui-2.1.1-py3.7.egg-info
%_datadir/applications/*.desktop
%_iconsdir/*.png
%_iconsdir/*/*.png

%prep
%setup -q -n linux-gui

%build
%py3_build

%install
%py3_install

%define nameicon linux_gui/resources/img/logo/protonvpn_logo.png
mkdir -p -m755 %{buildroot}{%_liconsdir,%_iconsdir,%_miconsdir}
convert -scale 48x48 %{nameicon} %{buildroot}/%{_liconsdir}/%{name}.png
convert -scale 32x32 %{nameicon} %{buildroot}/%{_iconsdir}/%{name}.png
convert -scale 16x16 %{nameicon} %{buildroot}/%{_miconsdir}/%{name}.png


rm -rf %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/blackPanther-%{name}.desktop <<EOF
[Desktop Entry]
Name=ProtonVPN Client
Name[hu]=ProtonVPN kliens
Comment=%Summary
Comment[hu]=%Summary_hu
GenericName=%Summary.
GenericName[hu]=%Summary_hu.
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Network;
Keywords=ProtonVPN;VPN;protonvpn-gui;
Actions=tray

[Desktop Action tray]
Name=ProtonVPN-Tray
Name[hu]=ProtonVPN-tálcaikon
Icon=%name
Exec=protonvpn-tray
EOF


%clean
rm -rf %buildroot


%changelog
* Fri Jul 31 2020 Charles K. Barcza <[email protected]> 2.1.1-1bP
- build package for blackPanther OS v17-20.1
-------------------------------------------------------------------------