summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Snell2020-08-04 11:10:45 -0400
committerChris Snell2020-08-04 11:10:45 -0400
commitee4700fbfa4f396b73cc47550416654b3778dfa5 (patch)
tree90883083e85a4259048cc8cde083c374fc671853
downloadaur-ee4700fbfa4f396b73cc47550416654b3778dfa5.tar.gz
Initial commit
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD34
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..04ebe912534
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = python-okta
+ pkgdesc = Python SDK for managing Okta instances
+ pkgver = r31.e45b411
+ pkgrel = 1
+ url = https://github.com/okta/okta-sdk-python
+ arch = any
+ makedepends = python-setuptools
+ makedepends = git
+ depends = python-requests
+ depends = python-dateutil
+ depends = python-six
+ source = git+https://github.com/okta/okta-sdk-python.git
+ sha1sums = SKIP
+
+pkgname = python-okta
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8556c254fd2
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Chris Snell <chris dot snell at gmail.com>
+
+pkgname=python-okta
+_upstream_name=okta-sdk-python
+pkgver=r31.e45b411
+pkgver() {
+ cd ${_upstream_name}
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+pkgrel=1
+pkgdesc='Python SDK for managing Okta instances'
+arch=('any')
+url="https://github.com/okta/okta-sdk-python"
+depends=('python-requests' 'python-dateutil' 'python-six')
+makedepends=('python-setuptools' 'git')
+source=("git+https://github.com/okta/okta-sdk-python.git")
+sha1sums=('SKIP')
+
+
+build() {
+ cd $_upstream_name
+
+ python setup.py build
+}
+
+package() {
+ cd $_upstream_name
+
+ python setup.py install --root="$pkgdir" --optimize=1
+
+ install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+
+# rm -f "$pkgdir"/usr/bin/{aws.cmd,aws_bash_completer}
+}