mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 23:53:51 +02:00
prosody: fixup
This commit is contained in:
parent
20ec351f4e
commit
52e1c4833a
1 changed files with 16 additions and 17 deletions
|
@ -3,6 +3,15 @@ pkgname=prosody
|
||||||
version=0.10.0
|
version=0.10.0
|
||||||
revision=2
|
revision=2
|
||||||
build_style=configure
|
build_style=configure
|
||||||
|
configure_args="
|
||||||
|
--ostype=linux
|
||||||
|
--prefix=/usr
|
||||||
|
--no-example-certs
|
||||||
|
--with-lua-include=${XBPS_CROSS_BASE}/usr/include/lua5.1
|
||||||
|
--with-lua=${XBPS_CROSS_BASE}/usr
|
||||||
|
--lua-version=5.1
|
||||||
|
--lua-suffix=5.1
|
||||||
|
--runwith=lua5.1"
|
||||||
conf_files="
|
conf_files="
|
||||||
/etc/prosody/prosody.cfg.lua
|
/etc/prosody/prosody.cfg.lua
|
||||||
/etc/prosody/certs/localhost.cnf
|
/etc/prosody/certs/localhost.cnf
|
||||||
|
@ -19,30 +28,20 @@ license="MIT"
|
||||||
homepage="https://prosody.im/"
|
homepage="https://prosody.im/"
|
||||||
distfiles="https://prosody.im/downloads/source/${pkgname}-${version}.tar.gz"
|
distfiles="https://prosody.im/downloads/source/${pkgname}-${version}.tar.gz"
|
||||||
checksum=7414e447256c60b2645578c4a5913113cd74b419ca5a032b54db90d98a978498
|
checksum=7414e447256c60b2645578c4a5913113cd74b419ca5a032b54db90d98a978498
|
||||||
checksum=1a59a322b71928a21985522aa00d0eab3552208d7bf9ecb318542a1b2fee3e8d
|
|
||||||
broken=https://build.voidlinux.eu/builders/armv6l_builder/builds/6248/steps/shell_3/logs/stdio
|
|
||||||
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
*-musl) ADDCFLAGS="-DWITHOUT_MALLINFO";;
|
*-musl) CFLAGS="-DWITHOUT_MALLINFO" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
post_configure() {
|
||||||
|
sed -i -e "/^CFLAGS=/s|$| ${CFLAGS}|" \
|
||||||
|
-e "s|^CC=.*|CC=${CC}|" \
|
||||||
|
-e 's|^LD=.*|LD=${CC}|' \
|
||||||
|
config.unix
|
||||||
|
}
|
||||||
pre_build() {
|
pre_build() {
|
||||||
cp -f ${FILESDIR}/prosody.cfg.lua prosody.cfg.lua.dist
|
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 \
|
|
||||||
--add-cflags="$ADDCFLAGS"
|
|
||||||
}
|
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vsv prosody
|
vsv prosody
|
||||||
vlicense COPYING
|
vlicense COPYING
|
||||||
|
|
Loading…
Add table
Reference in a new issue