wok-6.x annotate prosody/receipt @ rev 19488

Update SliTaz projects: slitaz-base-files (312), slitaz-configs (295), slitaz-doc (158), slitaz-tools (1004), tazinst (83), tazlito (439), tazpanel (606), tazpkg (927), tazusb (192), tazweb (172).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Nov 12 13:09:26 2016 +0200 (2016-11-12)
parents ad0940dfc5c8
children 2aa55e5540fb
rev   line source
allan316@4404 1 # SliTaz package receipt.
allan316@4404 2
allan316@4404 3 PACKAGE="prosody"
pankso@16578 4 VERSION="0.9.4"
pankso@4804 5 CATEGORY="network"
allan316@4404 6 SHORT_DESC="xmpp-jabber server in lua"
allan316@4404 7 MAINTAINER="allan316@gmail.com"
pascal@15375 8 LICENSE="MIT"
allan316@4404 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
allan316@4404 10 WEB_SITE="http://prosody.im"
allan316@4404 11 WGET_URL="$WEB_SITE/downloads/source/$TARBALL"
pankso@16578 12 HOST_ARCH="i486 arm"
allan316@4404 13
pascal@15375 14 DEPENDS="lua libidn libssl libcrypto"
pascal@15375 15 BUILD_DEPENDS="lua-dev libidn-dev openssl-dev"
pascal@15375 16
pankso@16578 17 # Handle cross compilation
pankso@16578 18 case "$ARCH" in
pankso@16578 19 arm*) luapath="/cross/$ARCH/sysroot" ;;
pankso@16578 20 esac
pankso@16578 21
allan316@4404 22 # Rules to configure and make the package.
allan316@4404 23 compile_rules()
allan316@4404 24 {
allan316@4404 25 ./configure \
pankso@16578 26 --prefix=/usr \
pankso@16578 27 --ostype=linux \
pankso@16578 28 --c-compiler=${HOST_SYSTEM}-gcc \
pankso@16578 29 --linker=${HOST_SYSTEM}-gcc \
pankso@16578 30 --with-lua=${luapath}/usr \
pankso@16578 31 --with-lua-lib=${luapath}/usr/lib \
pankso@16578 32 --with-lua-include=${luapath}/usr/include &&
pankso@16578 33 make && make DESTDIR=$DESTDIR install
allan316@4404 34 }
allan316@4404 35
allan316@4404 36 # Rules to gen a SliTaz package suitable for Tazpkg.
allan316@4404 37 genpkg_rules()
allan316@4404 38 {
allan316@4404 39 mkdir -p $fs/usr
pascal@15375 40 cp -a $install/usr/bin $fs/usr
pascal@15375 41 cp -a $install/usr/lib $fs/usr
pascal@15375 42 cp -a $install/etc $fs
pascal@15375 43 cp -a $install/var $fs
allan316@4404 44 }