wok annotate libjreen/receipt @ rev 24447
Add some current_version
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Feb 14 17:51:14 2022 +0000 (2022-02-14) |
parents | 573f08ef81b5 |
children | 3c71bb4367c3 |
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" |
Hans-G?nter@23078 | 9 WEB_SITE="http://qutim.org/jreen" |
Hans-G?nter@23078 | 10 |
devl547@13900 | 11 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
Hans-G?nter@23078 | 12 WGET_URL="http://qutim.org/dwnl/73/$TARBALL" |
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@24447 | 20 wget -O - http://qutim.org/jreen 2>/dev/null | \ |
pascal@24447 | 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed 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 } |