summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5e5adbf25dd743509235ec253a5ce163d7e64ce4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Contributor: Ryan Greenblatt <ryan_greenblatt at brown dot edu>
# Contributor: Paul Nicholson <brenix@gmail.com>

pkgname=openpyn-nordvpn
pkgver=3.0.0
pkgrel=4
pkgdesc="Easily connect to and switch between OpenVPN servers hosted by NordVPN"
provides=('python-openpyn' 'openpyn-nordvpn')
arch=('any')
url="https://github.com/jotyGill/openpyn-nordvpn"
license=('GPL3')
depends=('openvpn' 'libnotify' 'systemd' 'python-humanfriendly' 'python-gobject' 'python-requests' 'python-colorama' 'python-coloredlogs' 'python-verboselogs' 'python-tqdm' 'python-jsonschema' 'wget' 'unzip')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
install="${pkgname}.install"
source=("https://github.com/jotyGill/${pkgname}/archive/refs/tags/${pkgver}.tar.gz")
sha512sums=('78cd9984f82bcd1cde4d0a798c79599629fe9fd0d9ac72fb1a464dd415019379e530cc3ac360637b65e67b3bebd54289654555e7ce0786c1e525434e23713356')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  python -m build --wheel --no-isolation
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  python -m installer --destdir="$pkgdir" --compile-bytecode=2 dist/*.whl

  rm -f "${pkgdir}/usr/lib"/python*/site-packages/tests/{__init__.py,__pycache__/__init__.cpython-*.opt-2.pyc}
}