diff options
author | Y | 2018-03-29 21:39:49 +0200 |
---|---|---|
committer | Y | 2018-03-29 21:39:49 +0200 |
commit | 2ff1dd2d116b59c84a8ed35b4c4f9eac303f8986 (patch) | |
tree | 34e5ac0d1c719465e82d2598e31b626c4b10d773 /PKGBUILD | |
download | aur-2ff1dd2d116b59c84a8ed35b4c4f9eac303f8986.tar.gz |
init
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7d6d417e2491 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Yves G. <theYinYeti@yalis.fr> + +pkgname=prosody-mod-http-upload-external-hg +pkgver=tip +pkgrel=1 +pkgdesc="send by email the messages received while offline (if email/alias==jid)" +arch=('any') +url="https://modules.prosody.im/mod_http_upload_external.html" +license=('MIT') +depends=('prosody>=0.9') +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_http_upload_external" + find . -type f -name '*.lua' -exec install -Dm 644 '{}' "${pkgdir}/usr/lib/prosody/modules/{}" \; + find . -type f ! -name '*.lua' -exec install -Dm 644 '{}' "${pkgdir}/usr/share/doc/${pkgname}/{}" \; +} |