diff options
author | Y | 2017-05-27 16:11:13 +0200 |
---|---|---|
committer | Y | 2017-05-27 16:11:13 +0200 |
commit | 6fd6811a0b4d839d57aaddb559b95b0c192c6be4 (patch) | |
tree | 1511f4fa2914e901afa20c4640dbb3a57a584833 /PKGBUILD | |
download | aur-prosody-mod-auth-pam-hg.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..57267cd32a09 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,24 @@ +# Maintainer: Yves G. <theYinYeti@yalis.fr> + +pkgname=prosody-mod-auth-pam-hg +pkgver=tip +pkgrel=1 +pkgdesc="Authenticate Prosody users against PAM" +arch=('any') +url="https://modules.prosody.im/mod_auth_pam.html" +license=('MIT') +depends=('prosody>=0.9' 'lua51-pam' 'lua51-posix') +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_pam" + 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}/{}" \; +} |