wok-current view libjreen/receipt @ rev 25685

Add checkspace / fetchall feature for tazpkg
author Stanislas Leduc <shann@slitaz.org>
date Thu Mar 14 20:28:39 2024 +0000 (8 months ago)
parents ede1d184d5c5
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libjreen"
4 VERSION="1.2.0"
5 CATEGORY="misc"
6 SHORT_DESC="Qt jabber library, written in C++."
7 MAINTAINER="devl547@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://github.com/euroelessar/jreen"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/euroelessar/jreen/archive/refs/tags/v$VERSION.tar.gz"
14 DEPENDS="libidn libQtCore libQtNetwork qca"
15 BUILD_DEPENDS="cmake gsasl-dev libidn-dev qca-dev qmake Qt4-dev"
17 # What is the latest version available today?
18 current_version()
19 {
20 wget -O - $WEB_SITE/tags 2>/dev/null | \
21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q'
22 }
24 # Rules to configure and make the package.
25 compile_rules()
26 {
27 # 1.2.0 no such file
28 # sed -i -e 's/ moc_options /&moc_target /' \
29 # -e 's/\(QT4_CREATE_MOC_COMMAND.*\))/\1 "${moc_target}")/' \
30 # cmake/jreenMacros.cmake
32 mkdir build &&
33 cd build
34 cmake .. \
35 -DCMAKE_INSTALL_PREFIX=/usr &&
36 make DESTDIR=$DESTDIR install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/
43 cp -a $install/usr/lib $fs/usr
44 }