PKGBUILDS/protonvpn-nm-lib/PKGBUILD
2022-02-07 10:59:15 -06:00

33 lines
1.1 KiB
Bash

# Maintainer: Nathan <ndowens@artixlinux.org>
pkgname=python-protonvpn-nm-lib
_gitpkgname=protonvpn-nm-lib
pkgver=3.7.0
pkgrel=2.1
pkgdesc="Official ProtonVPN NetworkManager Library, maintained by the ProtonVPN team."
arch=("any")
url="https://github.com/ProtonVPN"
license=("GPL3")
groups=("ProtonVPN")
depends=("python-proton-client" "networkmanager" "networkmanager-openvpn" "openvpn" "libnm" "dbus" "libsecret" "python-pyxdg" "python-keyring" "python-jinja" "python-distro" "python-dbus" "xdg-utils" "python-gobject")
conflicts=("protonvpn-cli<3.11.0" "protonvpn-cli<1.7.0")
makedepends=("python-setuptools")
source=("https://github.com/ProtonVPN/protonvpn-nm-lib/archive/refs/tags/$pkgver.tar.gz"
"0001-remove-systemd.patch")
sha256sums=('df556d4c3e8d22e39db9a1e6d78263fe591e31866f1f6a50dfd4be677b2f2576'
'a2cb8dff7a4334c5bb8f8fa9cbf0bd5c533c6fc930ff011f0d47116eddfcc4e6')
prepare() {
cd "$_gitpkgname-$pkgver"
patch -Np1 -i ../0001-remove-systemd.patch
}
build() {
cd "$_gitpkgname-$pkgver"
python setup.py build
}
package() {
cd "$_gitpkgname-$pkgver"
python setup.py install --root="$pkgdir" --optimize=1
}