summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: fb3295669c3447c759e5319cde24fe51f7659d72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# Maintainer: alzeih <alzeih@users.noreply.github.com>
pkgname=prosody-modules-hg
pkgver=r2779.c53cc1ae4788
pkgrel=1
pkgdesc="prosody modules"
arch=('any')
url="https://modules.prosody.im/"
license=('MIT')
depends=('prosody')
makedepends=('mercurial' 'wget')
source=("hg+https://hg.prosody.im/prosody-modules/")
sha512sums=('SKIP')

pkgver() {
  cd "${srcdir}/prosody-modules/"
  printf "r%s.%s" "$(hg identify -n)" "$(hg identify -i)"
}

prepare() {
  cd "${srcdir}/prosody-modules/mod_admin_web/admin_web"
  ./get_deps.sh
}

package() {
  cd "${srcdir}/prosody-modules"
  install -dm 755 "${pkgdir}/usr/lib/prosody/modules/"
  find . -maxdepth 1 -type d -iname "mod_*" -and -not -iname "mod_mam" -exec cp -r "{}"  "${pkgdir}/usr/lib/prosody/modules/" \;
}