wok-next view qt4-examples/receipt @ rev 21031
Random updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Nov 03 15:42:26 2018 +0200 (2018-11-03) |
parents | 3ba86ab5ebce |
children | 5ffe59e2de3a |
line source
1 # SliTaz package receipt v2.
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/"
11 BUILD_DEPENDS="Qt4-dev qmake"
13 compile_rules() {
14 mkdir -p $install/usr/bin $install/usr/share/applications
16 for i in desktop/screenshot dialogs/findfiles widgets/charactermap; do
17 ii=$(basename $i)
18 cd $WOK/qt4/source/qt4-$VERSION/examples/$i
19 rm -rf Makefile moc* *.o
20 qmake $ii.pro
21 sed 's|-O2|'"$CFLAGS"'|' -i Makefile
23 make $MAKEFLAGS &&
24 install $ii $install/usr/bin
25 install $ii.desktop $install/usr/share/applications
26 find $install -name $ii.desktop \
27 -exec echo 'Categories=Utility;'>>$install/usr/share/applications/$ii.desktop \; \
28 -exec sed 's|/opt/|/|g' -i '{}' \;
29 done
30 }
32 genpkg_rules() {
33 cp -a $install/* $fs
34 DEPENDS="libQtCore libQtGui"
35 TAGS="qt"
36 }