summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorLászló Várady2020-02-17 17:39:15 +0100
committerLászló Várady2020-02-17 17:39:15 +0100
commit87c2b36408e05ec32e48ba60c363ba38a268aa90 (patch)
treeb49090ff0de2787ecc6492b49be4519bf9ac8fd3 /PKGBUILD
downloadaur-87c2b36408e05ec32e48ba60c363ba38a268aa90.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 32 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..aa5ac0284b4
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: László Várady <laszlo.varady93@gmail.com>
+
+pkgname=openconnect-sso
+pkgver=0.3.9
+pkgrel=1
+pkgdesc="Wrapper script for OpenConnect supporting Azure AD (SAMLv2) authentication"
+arch=('any')
+url="https://github.com/vlaci/openconnect-sso"
+license=('GPL3')
+depends=('python' 'python-pyqt5' 'python-pyqtwebengine' 'python-attrs' 'python-colorama'
+ 'python-keyring' 'python-lxml' 'python-prompt_toolkit' 'python-xdg' 'python-requests'
+ 'python-structlog' 'python-toml' 'sudo' 'openconnect')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-pytest-asyncio')
+optdepends=()
+source=("https://github.com/vlaci/openconnect-sso/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz")
+sha256sums=('3662a522a6fa84820fab47a4ff1a36059da1d4346fcdb2adc3ca93493bfa8051')
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check() {
+ cd "$pkgname-$pkgver"
+ pytest || /usr/bin/true # pytest-httpserver
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1
+}