wok-6.x view qt4-examples/receipt @ rev 18899

Add more art from Leonardo Laporte.
SLiM themes Clean, Esperanza, Japan Art, Leaves, Montanhoso.
Openbox 3 themes Blinder, Chrommo.
Combo-theme Japanes (Openbox and GTK2).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Feb 18 16:54:27 2016 +0200 (2016-02-18)
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 }