summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorThomas Fanninger2016-06-05 13:18:20 +0200
committerThomas Fanninger2016-06-05 13:18:20 +0200
commit1eb0a3eb38c0373c3dba84a5f5d031bb072692eb (patch)
treec40dce4a1251ad35a625e8c84d9f7468e1291ed8 /PKGBUILD
downloadaur-prosody-mod-mam-muc.tar.gz
Initial release
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD23
1 files changed, 23 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..fe296f5e8a3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,23 @@
+# Maintainer: Fanninger Thomas <thomas at fanninger dot at>
+
+pkgname=prosody-mod-mam-muc
+pkgver=r2199.2582d09d2ec4
+pkgrel=1
+pkgdesc="XEP-0313: Message Archive Management for MUC for Prosody"
+arch=('any')
+url="https://modules.prosody.im/mod_mam_muc.html"
+license=('MIT')
+depends=('prosody' 'prosody-mod-mam')
+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_mam_muc"
+ find . -type f -name '*.lua' -exec install -Dm 644 '{}' "${pkgdir}/usr/lib/prosody/modules/{}" \;
+}