wok view qt4-examples/receipt @ rev 22338

remove x11vnc-extra
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 15 18:28:42 2019 +0100 (9 months ago)
parents fcfac5b91be2
children 941f4a0a3594
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 $WANTED/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 }