wok annotate qt4-examples/receipt @ rev 17245
Add lxqt (meta), make qt4-examples: screenshot, findfiles, charactermap
author | Xander Ziiryanoff <psychomaniak@xakep.ru> |
---|---|
date | Sun Oct 19 01:51:31 2014 +0200 (2014-10-19) |
parents | |
children | 3ba86ab5ebce |
rev | line source |
---|---|
psychomaniak@17245 | 1 # SliTaz package receipt. |
psychomaniak@17245 | 2 |
psychomaniak@17245 | 3 PACKAGE="qt4-examples" |
psychomaniak@17245 | 4 VERSION="4.8.6" |
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@17245 | 13 BUILD_DEPENDS="Qt4-dev qmake cmake xorg-libX11-dev" |
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@17245 | 22 cd $WOK/qt4/source/qt4-$VERSION/examples/$i |
psychomaniak@17245 | 23 rm -rf Makefile moc* *.o |
psychomaniak@17245 | 24 qmake ${i:8}.pro |
psychomaniak@17245 | 25 sed 's|-O2|'"$CFLAGS"'|' -i Makefile |
psychomaniak@17245 | 26 make $MAKEFLAGS && |
psychomaniak@17245 | 27 install ${i:8} $DESTDIR/usr/bin |
psychomaniak@17245 | 28 install ${i:8}.desktop $DESTDIR/usr/share/applications |
psychomaniak@17245 | 29 done |
psychomaniak@17245 | 30 find $install -name *.desktop -exec sed 's|/opt/|/|g' -i {} \; |
psychomaniak@17245 | 31 } |
psychomaniak@17245 | 32 |
psychomaniak@17245 | 33 # Rules to gen a SliTaz package suitable for Tazpkg. |
psychomaniak@17245 | 34 genpkg_rules() |
psychomaniak@17245 | 35 { |
psychomaniak@17245 | 36 cp -a $install/* $fs |
psychomaniak@17245 | 37 } |