wok-6.x view libqwt6-qt4/receipt @ rev 24698
Up usbids (2022.02.23)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Mar 13 17:29:51 2022 +0000 (2022-03-13) |
parents | 76b72f1ad63c |
children | d765616e1f3d |
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="http://switch.dl.sourceforge.net/sourceforge/qwt/$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 }