summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 73306603e7879179c752b630b1b3dcb8baeed07c (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
# Maintainer: Daniel Bershatsky <bepshatsky@yandex.ru>

pkgname=networkmanager-openconnect-simple
_pkgname=${pkgname%-simple}
pkgver=0.0.0
pkgrel=2
pkgdesc='Simple and flexible NetworkManager support for OpenConnect in Python.'
arch=('any')
url="https://github.com/daskol/networkmanager-openconnect"
license=('MIT')
groups=()
depends=('dbus-python' 'networkmanager-openconnect' 'python-gobject')
makedepends=('python-build' 'python-installer' 'python-setuptools' 'python-wheel')
optdepends=()
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('05bf84df13684e8b3d7e2d07d9291be21dc5f7693bbe1b4fa648aba5e008e694')

build() {
    python -m build -nw $srcdir/$_pkgname-$pkgver
}

package() {
  python -m installer \
    --compile-bytecode 1 \
    --destdir $pkgdir \
    $srcdir/$_pkgname-$pkgver/dist/*.whl
}