summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorY2017-05-27 16:51:08 +0200
committerY2017-05-27 16:51:08 +0200
commitc88e50d79be3c7481297b861482796161286957b (patch)
tree524d16dcf0aaa48d6f1699c20253ee1f575fd093
downloadaur-c88e50d79be3c7481297b861482796161286957b.tar.gz
init
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD25
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..67386ba0c17
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+# Generated by mksrcinfo v8
+# Sat May 27 14:50:38 UTC 2017
+pkgbase = prosody-mod-auth-external-hg
+ pkgdesc = Authenticate Prosody users using a custom binary/script
+ pkgver = tip
+ pkgrel = 1
+ url = https://modules.prosody.im/mod_auth_external.html
+ arch = any
+ license = MIT
+ makedepends = mercurial
+ depends = prosody>=0.8
+ depends = lua51-lpty
+ source = hg+https://hg.prosody.im/prosody-modules/
+ sha1sums = SKIP
+
+pkgname = prosody-mod-auth-external-hg
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0547be71d24
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: Yves G. <theYinYeti@yalis.fr>
+
+pkgname=prosody-mod-auth-external-hg
+pkgver=tip
+pkgrel=1
+pkgdesc="Authenticate Prosody users using a custom binary/script"
+arch=('any')
+url="https://modules.prosody.im/mod_auth_external.html"
+license=('MIT')
+depends=('prosody>=0.8' 'lua51-lpty')
+makedepends=('mercurial')
+source=("hg+https://hg.prosody.im/prosody-modules/")
+sha1sums=('SKIP')
+
+pkgver() {
+ cd "${srcdir}/prosody-modules/"
+ printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
+}
+
+package() {
+ cd "${srcdir}/prosody-modules/mod_auth_external"
+ mkdir -p "${pkgdir}/usr/lib/prosody/modules/" "${pkgdir}/usr/share/doc/${pkgname}"
+ cp mod_auth_external.lua "${pkgdir}/usr/lib/prosody/modules/"
+ cp -r examples README.markdown "${pkgdir}/usr/share/doc/${pkgname}/"
+}