wok view libqwt6-qt4/receipt @ rev 25039

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