# SliTaz package receipt. PACKAGE="libqwt5-qt4" VERSION="5.2.3" CATEGORY="graphics" SHORT_DESC="Lib Qt Widgets for Technical applications." MAINTAINER="slitaz@objectif-securite.ch" LICENSE="LGPL2.1" WEB_SITE="https://qwt.sourceforge.io" SOURCE="qwt" TARBALL="$SOURCE-$VERSION.tar.bz2" WGET_URL="http://switch.dl.sourceforge.net/sourceforge/qwt/$TARBALL" WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL" DEPENDS="gcc-lib-base libQtCore libQtDesigner libQtGui libQtScript libQtXml" BUILD_DEPENDS="$DEPENDS qmake qt4 Qt4-dev" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/qwt/files/qwt/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/qwt/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { qmake && make -j1 && make INSTALL_ROOT=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/lib cp -a $install/usr/lib/qt $fs/usr/lib cp -a $install/usr/local/qwt-$VERSION/lib/libqwt.so* \ $fs/usr/lib }