summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0810f2fb9d0945fc619b803fdc372f7bae7e4018 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
pkgname=prosody-mod-cloud-notify
pkgver=r2049.50c188cf0ae3
pkgrel=1
pkgdesc="XEP-0357: Push Notifications for Prosody"
arch=('any')
url="https://modules.prosody.im/mod_cloud_notify.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_cloud_notify"
  find . -type f -name '*.lua' -exec install -Dm 644 '{}' "${pkgdir}/usr/lib/prosody/modules/{}" \;
}