wok annotate libqwt6-qt4/receipt @ rev 25322

cpige: remove -static
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Jul 22 07:58:08 2022 +0000 (2022-07-22)
parents d765616e1f3d
children b0069c845544
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@25094 12 #WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@25094 13 WGET_URL="http://ufpr.dl.sourceforge.net/project/qwt/qwt/$VERSION/$TARBALL"
pankso@13014 14
pankso@13014 15 DEPENDS="libQtCore libQtGui libQtScript libQtXml libQtDesigner gcc-lib-base"
pankso@13014 16 BUILD_DEPENDS="qmake Qt4-dev"
pankso@13014 17
pascal@24361 18 # What is the latest version available today?
pascal@24361 19 current_version()
pascal@24361 20 {
pascal@24361 21 wget -O - https://sourceforge.net/projects/qwt/files/qwt/ 2>/dev/null | \
pascal@24361 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24361 23 sed '/scope="row/!d;s|.*/qwt/||;s|/.*||;q'
pascal@24361 24 }
pascal@24361 25
pankso@13014 26 # Rules to configure and make the package.
pankso@13014 27 compile_rules()
pankso@13014 28 {
pankso@13014 29 sed -i \
pankso@13014 30 -e 's/$${QWT_INSTALL_PREFIX}\/include/\/usr\/include\/qwt\//' \
pankso@13014 31 -e 's/$${QWT_INSTALL_PREFIX}\/lib/\/usr\/lib\//' \
pankso@13014 32 -e 's/$${QWT_INSTALL_PREFIX}\/plugins\/designer/\/usr\/lib\/qt\/plugins\/designer\//' \
pankso@13014 33 -e 's/$${QWT_INSTALL_PREFIX}\/features/\/usr\/share\/qwt\/features\//' \
pankso@13014 34 qwtconfig.pri
pankso@13014 35 qmake &&
pankso@13014 36 make -j1 &&
pankso@13014 37 make INSTALL_ROOT=$DESTDIR install
pankso@13014 38 }
pankso@13014 39
pankso@13014 40 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@13014 41 genpkg_rules()
pankso@13014 42 {
pankso@13014 43 mkdir -p $fs/usr/share
pankso@13014 44 cp -a $install/usr/lib $fs/usr
pankso@13014 45 cp -a $install/usr/share/qwt $fs/usr/share
pankso@13014 46 }