summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD20
3 files changed, 39 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..61aafc2cde6
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = gsts
+ pkgdesc = Obtain and store AWS STS credentials to interact with Amazon services by authenticating via G Suite SAML.
+ pkgver = 2.3.0
+ pkgrel = 1
+ url = https://github.com/ruimarinho/gsts
+ arch = any
+ license = MIT
+ makedepends = npm
+ depends = nodejs
+ noextract = gsts-2.3.0.tar.gz
+ source = gsts-2.3.0.tar.gz::https://github.com/ruimarinho/gsts/archive/v2.3.0.tar.gz
+ sha256sums = 17445e969c911c307118dd004e2a427fc352376f633857efa4665afc89a67c47
+
+pkgname = gsts
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..6d80fea3d58
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+pkg/
+src/
+*.tar*
+LICENSE
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ef5228d0f47
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,20 @@
+# Maintainer: Michael Beaumont <mjboamail@gmail.com>
+pkgname=gsts
+pkgver=2.3.0
+pkgrel=1
+pkgdesc="Obtain and store AWS STS credentials to interact with Amazon services by authenticating via G Suite SAML."
+arch=(any)
+url="https://github.com/ruimarinho/gsts"
+license=('MIT')
+depends=('nodejs')
+makedepends=('npm')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/ruimarinho/gsts/archive/v${pkgver}.tar.gz")
+noextract=("${pkgname}-${pkgver}.tar.gz")
+sha256sums=('17445e969c911c307118dd004e2a427fc352376f633857efa4665afc89a67c47')
+
+package() {
+ npm install -g --user root --prefix "${pkgdir}/usr" "${srcdir}/${pkgname}-${pkgver}.tar.gz"
+ chown -R root:root "${pkgdir}"
+ find "${pkgdir}/usr" -name package.json -exec sed -i '/"_where"/d' '{}' '+'
+ find "${pkgdir}/usr" -type d -exec chmod 755 {} +
+}