wok-current annotate 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 |
rev | line source |
---|---|
devl547@13900 | 1 # SliTaz package receipt. |
devl547@13900 | 2 |
devl547@13900 | 3 PACKAGE="libjreen" |
Hans-G?nter@23078 | 4 VERSION="1.2.0" |
devl547@13900 | 5 CATEGORY="misc" |
Hans-G?nter@23078 | 6 SHORT_DESC="Qt jabber library, written in C++." |
devl547@13900 | 7 MAINTAINER="devl547@gmail.com" |
pascal@14714 | 8 LICENSE="GPL2" |
pascal@25564 | 9 WEB_SITE="https://github.com/euroelessar/jreen" |
Hans-G?nter@23078 | 10 |
pascal@25564 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@25564 | 12 WGET_URL="https://github.com/euroelessar/jreen/archive/refs/tags/v$VERSION.tar.gz" |
devl547@13900 | 13 |
Hans-G?nter@23078 | 14 DEPENDS="libidn libQtCore libQtNetwork qca" |
Hans-G?nter@23078 | 15 BUILD_DEPENDS="cmake gsasl-dev libidn-dev qca-dev qmake Qt4-dev" |
pascal@14714 | 16 |
pascal@24447 | 17 # What is the latest version available today? |
pascal@24447 | 18 current_version() |
pascal@24447 | 19 { |
pascal@25564 | 20 wget -O - $WEB_SITE/tags 2>/dev/null | \ |
pascal@25564 | 21 sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' |
pascal@24447 | 22 } |
pascal@24447 | 23 |
devl547@13900 | 24 # Rules to configure and make the package. |
devl547@13900 | 25 compile_rules() |
devl547@13900 | 26 { |
Hans-G?nter@23078 | 27 # 1.2.0 no such file |
Hans-G?nter@23078 | 28 # sed -i -e 's/ moc_options /&moc_target /' \ |
Hans-G?nter@23078 | 29 # -e 's/\(QT4_CREATE_MOC_COMMAND.*\))/\1 "${moc_target}")/' \ |
Hans-G?nter@23078 | 30 # cmake/jreenMacros.cmake |
Hans-G?nter@23078 | 31 |
Hans-G?nter@23078 | 32 mkdir build && |
Hans-G?nter@23078 | 33 cd build |
Hans-G?nter@23078 | 34 cmake .. \ |
Hans-G?nter@23078 | 35 -DCMAKE_INSTALL_PREFIX=/usr && |
devl547@13900 | 36 make DESTDIR=$DESTDIR install |
devl547@13900 | 37 } |
devl547@13900 | 38 |
devl547@13900 | 39 # Rules to gen a SliTaz package suitable for Tazpkg. |
devl547@13900 | 40 genpkg_rules() |
devl547@13900 | 41 { |
devl547@13900 | 42 mkdir -p $fs/usr/ |
Hans-G?nter@23078 | 43 cp -a $install/usr/lib $fs/usr |
devl547@13900 | 44 } |