42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
# Template file for 'prosody'
|
|
pkgname=prosody
|
|
version=0.9.11
|
|
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"
|
|
make_dirs="/var/lib/prosody 0755 prosody prosody"
|
|
makedepends="lua51-devel libressl-devel libidn-devel"
|
|
depends="luasocket luafilesystem luaexpat lua51-luasec"
|
|
short_desc="Lightweight and extensible Jabber/XMPP server written in Lua"
|
|
maintainer="Duncaen <duncaen@voidlinux.eu>"
|
|
license="MIT"
|
|
homepage="https://prosody.im/"
|
|
distfiles="https://prosody.im/downloads/source/${pkgname}-${version}.tar.gz"
|
|
checksum=32bff4c323747f768c61b5c9a23790126d33258e96d4e589920b4c3d88b67256
|
|
|
|
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
|
|
vlicense COPYING
|
|
}
|