wok view qt4-examples/receipt @ rev 21291

updated libsdl-mixer and libsdl-mixer-dev (1.2.11 -> 1.2.12)
author Hans-G?nter Theisgen
date Tue Apr 16 17:37:23 2019 +0100 (2019-04-16)
parents 826c1bab582b
children ba1e68274f76
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 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 }