From bdf01a37cec6c932e7027d42236a957f5cbcc58c Mon Sep 17 00:00:00 2001 From: Sebastian Hugentobler Date: Thu, 22 Jun 2023 09:47:56 +0200 Subject: [PATCH] initial commit --- .gitignore | 4 ++++ PKGBUILD | 23 +++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 .gitignore create mode 100644 PKGBUILD diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..765efc1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*~ +.DS_Store +*.pkg.tar.zst +*.pkg.tar.zst.sig diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..4763311 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +# Maintainer: Sebastian Hugentobler +pkgname=python-ocma +_gitpkgname=openconnect-ms-auth +pkgver=0.2.0 +pkgrel=1 +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") +makedepends=("python-poetry") +source=("https://git.snas.black-burn.ch/FHNW/openconnect-ms-auth/archive/$pkgver.tar.gz") +sha256sums=("613cc7a82887956badb0c3ca5c94c49fa25868337d976f30f6aa76ae6e129925") + +build() { + cd "$_gitpkgname" + poetry build --format=wheel +} + +package() { + cd "$_gitpkgname" + python -m installer --destdir="$pkgdir" dist/*.whl +}