AUR package

Have fun, I'll try to update if needed


Bash:
# Maintainer: 8vn5acnmf5
pkgname=perfect-privacy-vpn
pkgver=1.3.14
pkgrel=1
pkgdesc='perfect privacy client'
arch=('x86_64')
license=('custom')
url='https://www.perfect-privacy.com'
depends=('openvpn' 'python2-requests' 'python2-blinker' 'python2-gobject' 'polkit' 'gtk3' 'pango' 'glib2' 'gdk-pixbuf2' 'libappindicator-gtk3' 'python2')
optdepends=('resolvconf')

source=('https://www.perfect-privacy.com/downloads/perfect-privacy-vpn.deb')
sha256sums=('bded6f5aef6102d5a6592a47656b7c74d5c708cf71f56be998084dc14a068b63')

package() {
    tar -xf data.tar.xz -C "${pkgdir}"
    
    # not needed
    rm -rf "${pkgdir}/etc"
    
    # fix polkit policy
    sed -i '15s/no/auth_admin/' ${pkgdir}/usr/share/polkit-1/actions/com.perfect-privacy.perfect-privacy-vpn.policy
    sed -i '16s/no/auth_admin/' ${pkgdir}/usr/share/polkit-1/actions/com.perfect-privacy.perfect-privacy-vpn.policy

    # use python2
    sed -i ' 1 s/.*/&2/' ${pkgdir}/opt/perfect_privacy/perfect-privacy-vpn/bin/perfect-privacy-vpn
}
 

helium

New Member
Perfect, thank you for that 👏! After a 'makepkg -si' the client seems to have been installed alright.

Nevertheless - unfortunately it won't launch, at least not for me using XFCE :confused:.
 
Perfect, thank you for that 👏! After a 'makepkg -si' the client seems to have been installed alright.

Nevertheless - unfortunately it won't launch, at least not for me using XFCE :confused:.
What's the output when running "sudo perfect-privacy-vpn" from the terminal?
 

helium

New Member
First it was missing 'blinker', although 'python2-blinker' is installed. I additionally installed 'python-blinker', so now the output is:
File "/opt/perfect_privacy/perfect-privacy-vpn/bin/perfect-privacy-vpn", line 44, in <module>
import perfect_privacy_vpn
File "/opt/perfect_privacy/perfect-privacy-vpn/perfect_privacy_vpn/__init__.py", line 30, in <module>
from perfect_privacy_vpn import PerfectPrivacyVpnWindow
File "/opt/perfect_privacy/perfect-privacy-vpn/perfect_privacy_vpn/PerfectPrivacyVpnWindow.py", line 21, in <module>
from perfect_privacy_vpn_lib.helpers import get_media_file
File "/opt/perfect_privacy/perfect-privacy-vpn/perfect_privacy_vpn_lib/__init__.py", line 25, in <module>
from . core import Core
File "/opt/perfect_privacy/perfect-privacy-vpn/perfect_privacy_vpn_lib/core.py", line 21, in <module>
from perfect_privacy_api import UserApiAsync
File "/opt/perfect_privacy/perfect-privacy-vpn/perfect_privacy_api/__init__.py", line 23, in <module>
from . userapi.userapi_async import UserApiAsync
File "/opt/perfect_privacy/perfect-privacy-vpn/perfect_privacy_api/userapi/userapi_async.py", line 20, in <module>
from userapi import UserApi
ModuleNotFoundError: No module named 'userapi'
Don't know what to do with that now.
 
First it was missing 'blinker', although 'python2-blinker' is installed. I additionally installed 'python-blinker', so now the output is:


Don't know what to do with that now.
Seems like the VPN manager is executed via python3 not python2, the shebang is supposed to be #!/usr/bin/python2 in
/opt/perfect_privacy/perfect-privacy-vpn/bin/perfect-privacy-vpn
Should normally be done by the PKGBUILD.
 

helium

New Member
Changing the shebang did the trick 😊!
Apart from missing status icons and that it won't minimize to tray, everything else seems to be working fine 👍
 

wellywu

New Member
I am using Manjaro 20.1 64-bit "Mikah" GNU/Linux on my late 2019 Computer Upgrade King Hewlett Packard Omen 15t gaming notebook PC. It says that python2-blinker is missing. This is my terminal output:

Code:
~/.../VPN/Perfect-Privacy >>> cd ..                                         [1]
~/Downloads/VPN >>> ls                                                         
Perfect-Privacy  PKGBUILD
~/Downloads/VPN >>> makepkg -si                                               
/home/wellywu/Downloads/VPN/PKGBUILD: line 1: Bash:: command not found
==> Making package: perfect-privacy-vpn 1.3.14-1 (Wed 16 Sep 2020 08:34:09 PM EDT)
==> Checking runtime dependencies...
==> Installing missing dependencies...
error: target not found: python2-blinker
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> python2-blinker
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.
~/Downloads/VPN >>>
How do I fix this so it will build the package and install it? Thanks.
 
Top