blob: f2f281a529a4aa014aa00aaf97ddc1c2b54a78b1 (
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
30
31
32
33
34
35
36
37
38
|
# Maintainer: Hans-Nikolai Viessmann <hans AT viess DOT mn>
pkgname=python-eduvpn-client
_name=$pkgname
pkgver=4.4.0
pkgrel=4
pkgdesc="Linux client and Python client API for eduVPN"
arch=('any')
url="https://codeberg.org/eduVPN/linux-app"
license=('GPL-3.0-or-later')
depends=('python' 'gobject-introspection-runtime'
'python-requests-oauthlib' 'python-pynacl' 'dbus-python' 'python-gobject'
'hicolor-icon-theme' 'python-eduvpn_common>=2.1.0'
'python-pyqt5' 'libibus' 'libgexiv2'
'libsecret' 'gdk-pixbuf2' 'libnotify' 'pango'
'gtk3' 'libnm' 'networkmanager-openvpn')
makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
source=("$url/releases/download/${pkgver}/${_name}-${pkgver}.tar".{xz,xz.asc})
sha256sums=('2074488ebc8021e19c16acf904c5ac134fe00a56929a7c168637357f573af6f9'
'SKIP')
validpgpkeys=('227FF3F8F829D9A9314D9EBA02BB8048BBFF222C')
# NOTE GPG keys can be found under the `keys/` directory in `src/python-eduvpn-client-$pkgver`.
build() {
cd "${_name}-${pkgver}"
/usr/bin/python -m build --wheel --no-isolation --skip-dependency-check
}
package() {
cd "${_name}-${pkgver}"
PYTHONHASHSEED=0 /usr/bin/python -m installer --destdir="${pkgdir}" dist/*.whl
# setup desktop assets
local python_version=$(/usr/bin/python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
install -d ${pkgdir}/usr/share
cp -r ${pkgdir}/usr/lib/python${python_version}/site-packages/eduvpn/data/share/* ${pkgdir}/usr/share/
}
|