wok annotate qt4-examples/receipt @ rev 21766

updated frogatto and frogatto-data again (1.1.1 -> 1.3.1)
author Hans-G?nter Theisgen
date Sat Jun 29 09:15:49 2019 +0100 (2019-06-29)
parents 826c1bab582b
children ba1e68274f76
rev   line source
psychomaniak@17245 1 # SliTaz package receipt.
psychomaniak@17245 2
psychomaniak@17245 3 PACKAGE="qt4-examples"
psychomaniak@19568 4 VERSION="4.8.7"
psychomaniak@17245 5 CATEGORY="misc"
psychomaniak@17245 6 SHORT_DESC="Screenshot, FindFiles, CharacterMap"
psychomaniak@17245 7 MAINTAINER="psychomaniak@xakep.ru"
psychomaniak@17245 8 LICENSE="GPL3 LGPL2.1"
psychomaniak@17245 9 WEB_SITE="http://qt-project.org/"
psychomaniak@17245 10 TAGS="qt"
psychomaniak@17245 11
psychomaniak@17245 12 DEPENDS="libQtCore libQtGui"
psychomaniak@17254 13 BUILD_DEPENDS="Qt4-dev qmake"
psychomaniak@17245 14
psychomaniak@17245 15 # Rules to configure and make the package.
psychomaniak@17245 16 compile_rules()
psychomaniak@17245 17 {
psychomaniak@17245 18 mkdir -p $install/usr/bin $install/usr/share/applications
psychomaniak@17245 19
psychomaniak@17245 20 for i in desktop/screenshot dialogs/findfiles widgets/charactermap;
psychomaniak@17245 21 do
psychomaniak@17254 22 ii=$(basename $i) && cd $WOK/qt4/source/qt4-$VERSION/examples/$i
psychomaniak@17245 23 rm -rf Makefile moc* *.o
psychomaniak@17254 24 qmake $ii.pro
psychomaniak@17245 25 sed 's|-O2|'"$CFLAGS"'|' -i Makefile
psychomaniak@17245 26 make $MAKEFLAGS &&
psychomaniak@17254 27 install $ii $DESTDIR/usr/bin
psychomaniak@17254 28 install $ii.desktop $DESTDIR/usr/share/applications
psychomaniak@17254 29 find $install -name $ii.desktop \
psychomaniak@17254 30 -exec echo 'Categories=Utility;'>>$install/usr/share/applications/$ii.desktop \; \
psychomaniak@17254 31 -exec sed 's|/opt/|/|g' -i {} \;
psychomaniak@17245 32 done
psychomaniak@17245 33 }
psychomaniak@17245 34
psychomaniak@17245 35 # Rules to gen a SliTaz package suitable for Tazpkg.
psychomaniak@17245 36 genpkg_rules()
psychomaniak@17245 37 {
psychomaniak@17245 38 cp -a $install/* $fs
psychomaniak@17245 39 }