wok view prosody/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (24 months ago)
parents 456e88491abe
children b6cd62d7f367
line source
1 # SliTaz package receipt.
3 PACKAGE="prosody"
4 VERSION="0.11.5"
5 CATEGORY="network"
6 SHORT_DESC="Xmpp-jabber server in lua."
7 MAINTAINER="allan316@gmail.com"
8 LICENSE="MIT"
9 WEB_SITE="https://prosody.im"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/downloads/source/$TARBALL"
14 DEPENDS="libcrypto libidn libssl lua"
15 BUILD_DEPENDS="libidn-dev openssl-dev lua-dev"
17 HOST_ARCH="i486 arm"
19 # Handle cross compilation
20 case "$ARCH" in
21 arm*) luapath="/cross/$ARCH/sysroot" ;;
22 esac
24 # What is the latest version available today?
25 current_version()
26 {
27 wget -O - ${WGET_URL%/*} 2>/dev/null | \
28 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
29 }
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 ./configure \
35 --prefix=/usr \
36 --ostype=linux \
37 --c-compiler=${HOST_SYSTEM}-gcc \
38 --linker=${HOST_SYSTEM}-gcc \
39 --with-lua=${luapath}/usr \
40 --with-lua-lib=${luapath}/usr/lib \
41 --with-lua-include=${luapath}/usr/include &&
42 make &&
43 make DESTDIR=$DESTDIR install
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/usr
51 cp -a $install/usr/bin $fs/usr
52 cp -a $install/usr/lib $fs/usr
53 cp -a $install/etc $fs
54 cp -a $install/var $fs
55 }