wok view qt4-examples/receipt @ rev 17246

Up osmo (0.2.12)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Oct 19 10:30:22 2014 +0200 (2014-10-19)
parents
children 3ba86ab5ebce
line source
1 # SliTaz package receipt.
3 PACKAGE="qt4-examples"
4 VERSION="4.8.6"
5 CATEGORY="misc"
6 SHORT_DESC="Screenshot, FindFiles, CharacterMap"
7 MAINTAINER="psychomaniak@xakep.ru"
8 LICENSE="GPL3 LGPL2.1"
9 WEB_SITE="http://qt-project.org/"
10 TAGS="qt"
12 DEPENDS="libQtCore libQtGui"
13 BUILD_DEPENDS="Qt4-dev qmake cmake xorg-libX11-dev"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 mkdir -p $install/usr/bin $install/usr/share/applications
20 for i in desktop/screenshot dialogs/findfiles widgets/charactermap;
21 do
22 cd $WOK/qt4/source/qt4-$VERSION/examples/$i
23 rm -rf Makefile moc* *.o
24 qmake ${i:8}.pro
25 sed 's|-O2|'"$CFLAGS"'|' -i Makefile
26 make $MAKEFLAGS &&
27 install ${i:8} $DESTDIR/usr/bin
28 install ${i:8}.desktop $DESTDIR/usr/share/applications
29 done
30 find $install -name *.desktop -exec sed 's|/opt/|/|g' -i {} \;
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 cp -a $install/* $fs
37 }