wok-6.x view qt4-examples/receipt @ rev 17591
syslinux/isohybrib.exe: add --md5, --undo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Feb 10 08:53:27 2015 +0100 (2015-02-10) |
parents | a4377148d6dc |
children | 9cb6a23202c2 |
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"
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 ii=$(basename $i) && cd $WOK/qt4/source/qt4-$VERSION/examples/$i
23 rm -rf Makefile moc* *.o
24 qmake $ii.pro
25 sed 's|-O2|'"$CFLAGS"'|' -i Makefile
26 make $MAKEFLAGS &&
27 install $ii $DESTDIR/usr/bin
28 install $ii.desktop $DESTDIR/usr/share/applications
29 find $install -name $ii.desktop \
30 -exec echo 'Categories=Utility;'>>$install/usr/share/applications/$ii.desktop \; \
31 -exec sed 's|/opt/|/|g' -i {} \;
32 done
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 cp -a $install/* $fs
39 }