diff options
author | Jörg Thalheim | 2016-04-23 17:21:37 +0200 |
---|---|---|
committer | Jörg Thalheim | 2016-04-23 17:22:36 +0200 |
commit | 39d8dbe115e6190286c16b5f591548be3039ef5d (patch) | |
tree | 479c41f3f7a8c25d9e7ec183c8e41475c152b9a0 /PKGBUILD | |
download | aur-prosody-mod-throttle_presence.tar.gz |
first commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3a14c89f6b72 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,21 @@ +pkgname=prosody-mod-throttle_presence +pkgver=r2165.e0b8b8a50013 +pkgrel=1 +pkgdesc="throttle presence updates in prosody to save power" +arch=('any') +url="https://modules.prosody.im/mod_throttle_presence.html" +license=('MIT') +depends=('prosody') +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_throttle_presence" + find . -type f -name '*.lua' -exec install -Dm 644 '{}' "${pkgdir}/usr/lib/prosody/modules/{}" \; +} |