wok annotate prosody/receipt @ rev 24454

gnustep-back: added dependency icu
author Hans-G?nter Theisgen
date Wed Feb 16 07:53:02 2022 +0100 (2022-02-16)
parents 456e88491abe
children b6cd62d7f367
rev   line source
allan316@4404 1 # SliTaz package receipt.
allan316@4404 2
allan316@4404 3 PACKAGE="prosody"
Hans-G?nter@23448 4 VERSION="0.11.5"
pankso@4804 5 CATEGORY="network"
Hans-G?nter@21706 6 SHORT_DESC="Xmpp-jabber server in lua."
allan316@4404 7 MAINTAINER="allan316@gmail.com"
pascal@15375 8 LICENSE="MIT"
Hans-G?nter@21706 9 WEB_SITE="https://prosody.im"
Hans-G?nter@21706 10
allan316@4404 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
allan316@4404 12 WGET_URL="$WEB_SITE/downloads/source/$TARBALL"
allan316@4404 13
Hans-G?nter@23448 14 DEPENDS="libcrypto libidn libssl lua"
Hans-G?nter@23448 15 BUILD_DEPENDS="libidn-dev openssl-dev lua-dev"
pascal@15375 16
Hans-G?nter@21706 17 HOST_ARCH="i486 arm"
Hans-G?nter@21706 18
pankso@16578 19 # Handle cross compilation
pankso@16578 20 case "$ARCH" in
pankso@16578 21 arm*) luapath="/cross/$ARCH/sysroot" ;;
pankso@16578 22 esac
pankso@16578 23
pascal@24427 24 # What is the latest version available today?
pascal@24427 25 current_version()
pascal@24427 26 {
pascal@24427 27 wget -O - ${WGET_URL%/*} 2>/dev/null | \
pascal@24427 28 sed "/latest/d;/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24427 29 }
pascal@24427 30
allan316@4404 31 # Rules to configure and make the package.
allan316@4404 32 compile_rules()
allan316@4404 33 {
Hans-G?nter@21706 34 ./configure \
Hans-G?nter@21706 35 --prefix=/usr \
Hans-G?nter@21706 36 --ostype=linux \
Hans-G?nter@21706 37 --c-compiler=${HOST_SYSTEM}-gcc \
Hans-G?nter@21706 38 --linker=${HOST_SYSTEM}-gcc \
Hans-G?nter@21706 39 --with-lua=${luapath}/usr \
Hans-G?nter@21706 40 --with-lua-lib=${luapath}/usr/lib \
pankso@16578 41 --with-lua-include=${luapath}/usr/include &&
Hans-G?nter@21706 42 make &&
Hans-G?nter@21706 43 make DESTDIR=$DESTDIR install
allan316@4404 44 }
allan316@4404 45
allan316@4404 46 # Rules to gen a SliTaz package suitable for Tazpkg.
allan316@4404 47 genpkg_rules()
allan316@4404 48 {
allan316@4404 49 mkdir -p $fs/usr
Hans-G?nter@21706 50
Hans-G?nter@21706 51 cp -a $install/usr/bin $fs/usr
Hans-G?nter@21706 52 cp -a $install/usr/lib $fs/usr
Hans-G?nter@21706 53 cp -a $install/etc $fs
Hans-G?nter@21706 54 cp -a $install/var $fs
allan316@4404 55 }