wok view prosody/receipt @ rev 25794

created recipe for exo-lang
author Hans-G?nter Theisgen
date Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago)
parents 83b97236db32
children
line source
1 # SliTaz package receipt.
3 PACKAGE="prosody"
4 VERSION="0.12.1"
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="icu libcrypto libssl lua"
15 BUILD_DEPENDS="icu-dev lua-dev openssl-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 install DESTDIR=$DESTDIR
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 cook_copy_folders bin
50 cook_copy_folders etc
51 cook_copy_folders lib
52 cook_copy_folders var
53 }