wok-next view qt4-examples/receipt @ rev 20709

cdrdao: add patch.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat May 26 17:09:29 2018 +0300 (2018-05-26)
parents a4377148d6dc
children d5aab818505e
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 }