1 #Maintainer: Nick Campbell <s0ma AT theangryfist DOT net>
2 #Contributor: Dwayne Bent <dbb.0@liqd.org>
3 #contributor: Gustavo Alvarez <sl1pkn07@gmail.com>
8 pkgdesc="Development tip of a lightweight and extensible Jabber/XMPP server written in Lua."
10 url="http://prosody.im"
12 depends=('lua>=5.1' 'luasocket' 'luaexpat' 'luafilesystem' 'libidn>=0.5.18' 'openssl')
13 optdepends=('luasec: TLS encryption support'
14 'lua-zlib: compression support'
15 'luaevent: Better Connection Scaling')
16 install=prosody.install
17 backup=('etc/logrotate.d/prosody'
18 'etc/prosody/prosody.cfg.lua')
19 makedepends=('mercurial')
21 conflicts=('prosody' 'prosody-devel')
25 md5sums=('d2b5f9c8e42bb31819e715eb1756ee53'
26 '26466fdbea87963a3ca6f48f76fe4a29'
27 '59a1bf2dfd0bd386cef6fa646e2a3752')
29 _hgroot="http://hg.prosody.im"
33 cd ${srcdir}/${_hgrepo}
35 ./configure --prefix=/usr --sysconfdir=/etc/prosody --datadir=/var/lib/prosody
41 cd ${srcdir}/${_hgrepo}
42 make DESTDIR=${pkgdir} install
44 rm $pkgdir/etc/prosody/certs/*
46 install -d $pkgdir/etc/rc.d
47 install -d $pkgdir/etc/logrotate.d
48 install -d $pkgdir/var/log/prosody
50 # install -Dm644 ${srcdir}/${_hgrepo}/prosody.cfg.lua.dist ${pkgdir}/etc/prosody/prosody.cfg.lua
51 install -Dm755 ${srcdir}/prosody.rcd ${pkgdir}/etc/rc.d/prosody
52 install -Dm644 ${srcdir}/prosody.logrotated ${pkgdir}/etc/logrotate.d/prosody