void-packages/srcpkgs/prosody/template

42 lines
1.1 KiB
Bash
Raw Normal View History

2015-03-22 23:01:38 +01:00
# Template file for 'prosody'
pkgname=prosody
2015-03-27 16:12:41 +01:00
version=0.9.8
2015-03-22 23:01:38 +01:00
revision=1
build_style=configure
conf_files="
/etc/prosody/prosody.cfg.lua
/etc/prosody/certs/localhost.cnf
/etc/prosody/certs/openssl.cnf
/etc/prosody/certs/Makefile"
system_accounts="prosody"
prosody_homedir="/var/lib/prosody"
2015-03-27 16:12:41 +01:00
make_dirs="/var/lib/prosody 0755 prosody prosody"
2015-03-22 23:01:38 +01:00
makedepends="lua51-devel libressl-devel libidn-devel"
depends="lua51 luasocket luafilesystem luaexpat luasec"
short_desc="Lightweight and extensible Jabber/XMPP server written in Lua"
maintainer="Duncaen <mail@duncano.de>"
license="MIT"
homepage="https://prosody.im/"
distfiles="https://prosody.im/downloads/source/${pkgname}-${version}.tar.gz"
2015-03-27 16:12:41 +01:00
checksum=9470415c56e0b847089b45fabd48bc1f8211cd525fba56967409d064f4257871
2015-03-22 23:01:38 +01:00
pre_build() {
cp -f ${FILESDIR}/prosody.cfg.lua prosody.cfg.lua.dist
}
do_configure() {
./configure --ostype=linux \
--prefix=/usr \
--no-example-certs \
--c-compiler=${CC} \
--linker=${CC} \
--with-lua-include=${XBPS_CROSS_BASE}/usr/include/lua5.1 \
--with-lua=${XBPS_CROSS_BASE}/usr \
--lua-suffix=5.1 \
--runwith=lua5.1
}
post_install() {
vsv prosody
}