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

efivar: typo in post_install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 01 10:31:46 2020 +0000 (2020-09-01)
parents d5aab818505e
children
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="https://www.qt.io/developers/"
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 }