wok-6.x view qt4-examples/receipt @ rev 22681
elilo: race condition
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jan 18 18:53:45 2020 +0100 (2020-01-18) |
parents | ba1e68274f76 |
children | cb67b4f8be05 |
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 WEB_SITE="http://qt-project.org/"
10 WANTED="qt4"
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 $DESTDIR/usr/bin $DESTDIR/usr/share/applications
21 for i in desktop/screenshot dialogs/findfiles widgets/charactermap;
22 do
23 ii=$(basename $i) && cd $src/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 $DESTDIR -name $ii.desktop \
31 -exec echo 'Categories=Utility;'>>$DESTDIR/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 }