wok annotate libqwt6-qt4/receipt @ rev 25073

Up dropbear (2022.82)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 11 11:22:52 2022 +0000 (2022-06-11)
parents 370da83187ab
children b56b38cfd475
rev   line source
pankso@13014 1 # SliTaz package receipt.
pankso@13014 2
pankso@13014 3 PACKAGE="libqwt6-qt4"
pankso@13014 4 VERSION="6.0.1"
pankso@13014 5 CATEGORY="graphics"
pankso@13014 6 SHORT_DESC="Lib Qt Widgets for Technical applications"
pankso@13014 7 MAINTAINER="slitaz@objectif-securite.ch"
pascal@14996 8 LICENSE="LGPL2.1"
pankso@13014 9 SOURCE="qwt"
pankso@13014 10 TARBALL="$SOURCE-$VERSION.tar.bz2"
pankso@13014 11 WEB_SITE="http://qwt.sourceforge.net"
pascal@24979 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pankso@13014 13
pankso@13014 14 DEPENDS="libQtCore libQtGui libQtScript libQtXml libQtDesigner gcc-lib-base"
pankso@13014 15 BUILD_DEPENDS="qmake Qt4-dev"
pankso@13014 16
pascal@24361 17 # What is the latest version available today?
pascal@24361 18 current_version()
pascal@24361 19 {
pascal@24361 20 wget -O - https://sourceforge.net/projects/qwt/files/qwt/ 2>/dev/null | \
pascal@24361 21 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24361 22 sed '/scope="row/!d;s|.*/qwt/||;s|/.*||;q'
pascal@24361 23 }
pascal@24361 24
pankso@13014 25 # Rules to configure and make the package.
pankso@13014 26 compile_rules()
pankso@13014 27 {
pankso@13014 28 sed -i \
pankso@13014 29 -e 's/$${QWT_INSTALL_PREFIX}\/include/\/usr\/include\/qwt\//' \
pankso@13014 30 -e 's/$${QWT_INSTALL_PREFIX}\/lib/\/usr\/lib\//' \
pankso@13014 31 -e 's/$${QWT_INSTALL_PREFIX}\/plugins\/designer/\/usr\/lib\/qt\/plugins\/designer\//' \
pankso@13014 32 -e 's/$${QWT_INSTALL_PREFIX}\/features/\/usr\/share\/qwt\/features\//' \
pankso@13014 33 qwtconfig.pri
pankso@13014 34 qmake &&
pankso@13014 35 make -j1 &&
pankso@13014 36 make INSTALL_ROOT=$DESTDIR install
pankso@13014 37 }
pankso@13014 38
pankso@13014 39 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@13014 40 genpkg_rules()
pankso@13014 41 {
pankso@13014 42 mkdir -p $fs/usr/share
pankso@13014 43 cp -a $install/usr/lib $fs/usr
pankso@13014 44 cp -a $install/usr/share/qwt $fs/usr/share
pankso@13014 45 }