python-ocma/PKGBUILD

24 lines
737 B
Bash

# Maintainer: Sebastian Hugentobler <shu@vanwa.ch>
pkgname=python-ocma
_gitpkgname=openconnect-ms-auth
pkgver=0.3.0
pkgrel=2
pkgdesc="Authenticate with your MFA enabled Microsoft-Account to the openconnect VPN client."
arch=("any")
url="https://git.snas.black-burn.ch/FHNW/openconnect-ms-auth"
license=("MIT")
depends=("python-selenium" "python-otppy" "geckodriver" "selenium-manager")
makedepends=("python-poetry")
source=("https://git.snas.black-burn.ch/FHNW/openconnect-ms-auth/archive/$pkgver.tar.gz")
sha256sums=("d56956b01b2e507da925877a099c8df23ace5205fc05cb99475dc80d2ace3670")
build() {
cd "$_gitpkgname"
poetry build --format=wheel
}
package() {
cd "$_gitpkgname"
python -m installer --destdir="$pkgdir" dist/*.whl
}