# SliTaz package receipt. PACKAGE="libjreen" VERSION="1.2.0" CATEGORY="misc" SHORT_DESC="Qt jabber library, written in C++." MAINTAINER="devl547@gmail.com" LICENSE="GPL2" WEB_SITE="https://github.com/euroelessar/jreen" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/euroelessar/jreen/archive/refs/tags/v$VERSION.tar.gz" DEPENDS="libidn libQtCore libQtNetwork qca" BUILD_DEPENDS="cmake gsasl-dev libidn-dev qca-dev qmake Qt4-dev" # What is the latest version available today? current_version() { wget -O - $WEB_SITE/tags 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { # 1.2.0 no such file # sed -i -e 's/ moc_options /&moc_target /' \ # -e 's/\(QT4_CREATE_MOC_COMMAND.*\))/\1 "${moc_target}")/' \ # cmake/jreenMacros.cmake mkdir build && cd build cmake .. \ -DCMAKE_INSTALL_PREFIX=/usr && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/ cp -a $install/usr/lib $fs/usr }