wok view qt4-examples/receipt @ rev 21220

Up collectd-bind (5.8.1), foomatic-db-engine (4.0.13), freeimage (3.1.8.0), perl-datetime-format-mail (0.403)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Apr 10 13:37:55 2019 +0200 (2019-04-10)
parents 9cb6a23202c2
children fcfac5b91be2
line source
1 # SliTaz package receipt.
3 PACKAGE="qt4-examples"
4 VERSION="4.8.7"
5 CATEGORY="misc"
6 SHORT_DESC="Screenshot, FindFiles, CharacterMap"
7 MAINTAINER="psychomaniak@xakep.ru"
8 LICENSE="GPL3 LGPL2.1"
9 WANTED="qt4"
10 WEB_SITE="http://qt-project.org/"
11 TAGS="qt"
13 DEPENDS="libQtCore libQtGui"
14 BUILD_DEPENDS="Qt4-dev qmake"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 mkdir -p $install/usr/bin $install/usr/share/applications
21 for i in desktop/screenshot dialogs/findfiles widgets/charactermap;
22 do
23 ii=$(basename $i) && cd $WOK/qt4/source/qt4-$VERSION/examples/$i
24 rm -rf Makefile moc* *.o
25 qmake $ii.pro
26 sed 's|-O2|'"$CFLAGS"'|' -i Makefile
27 make $MAKEFLAGS &&
28 install $ii $DESTDIR/usr/bin
29 install $ii.desktop $DESTDIR/usr/share/applications
30 find $install -name $ii.desktop \
31 -exec echo 'Categories=Utility;'>>$install/usr/share/applications/$ii.desktop \; \
32 -exec sed 's|/opt/|/|g' -i {} \;
33 done
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cp -a $install/* $fs
40 }