summarylogtreecommitdiffstats
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
downloadaur-87c2b36408e05ec32e48ba60c363ba38a268aa90.tar.gz
Initial commit
-rw-r--r--.SRCINFO29
-rw-r--r--PKGBUILD32
2 files changed, 61 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..ef763081456
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,29 @@
+pkgbase = openconnect-sso
+ pkgdesc = Wrapper script for OpenConnect supporting Azure AD (SAMLv2) authentication
+ pkgver = 0.3.9
+ pkgrel = 1
+ url = https://github.com/vlaci/openconnect-sso
+ arch = any
+ license = GPL3
+ checkdepends = python-pytest
+ checkdepends = python-pytest-asyncio
+ makedepends = python-setuptools
+ depends = python
+ depends = python-pyqt5
+ depends = python-pyqtwebengine
+ depends = python-attrs
+ depends = python-colorama
+ depends = python-keyring
+ depends = python-lxml
+ depends = python-prompt_toolkit
+ depends = python-xdg
+ depends = python-requests
+ depends = python-structlog
+ depends = python-toml
+ depends = sudo
+ depends = openconnect
+ source = https://github.com/vlaci/openconnect-sso/releases/download/v0.3.9/openconnect-sso-0.3.9.tar.gz
+ sha256sums = 3662a522a6fa84820fab47a4ff1a36059da1d4346fcdb2adc3ca93493bfa8051
+
+pkgname = openconnect-sso
+
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
+}