wok-next diff 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 diff
1.1 --- a/qt4-examples/receipt Mon Oct 20 19:58:54 2014 +0200 1.2 +++ b/qt4-examples/receipt Sat Nov 03 15:42:26 2018 +0200 1.3 @@ -1,4 +1,4 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="qt4-examples" 1.8 VERSION="4.8.6" 1.9 @@ -7,33 +7,30 @@ 1.10 MAINTAINER="psychomaniak@xakep.ru" 1.11 LICENSE="GPL3 LGPL2.1" 1.12 WEB_SITE="http://qt-project.org/" 1.13 -TAGS="qt" 1.14 1.15 -DEPENDS="libQtCore libQtGui" 1.16 BUILD_DEPENDS="Qt4-dev qmake" 1.17 1.18 -# Rules to configure and make the package. 1.19 -compile_rules() 1.20 -{ 1.21 +compile_rules() { 1.22 mkdir -p $install/usr/bin $install/usr/share/applications 1.23 1.24 - for i in desktop/screenshot dialogs/findfiles widgets/charactermap; 1.25 - do 1.26 - ii=$(basename $i) && cd $WOK/qt4/source/qt4-$VERSION/examples/$i 1.27 + for i in desktop/screenshot dialogs/findfiles widgets/charactermap; do 1.28 + ii=$(basename $i) 1.29 + cd $WOK/qt4/source/qt4-$VERSION/examples/$i 1.30 rm -rf Makefile moc* *.o 1.31 - qmake $ii.pro 1.32 + qmake $ii.pro 1.33 sed 's|-O2|'"$CFLAGS"'|' -i Makefile 1.34 + 1.35 make $MAKEFLAGS && 1.36 - install $ii $DESTDIR/usr/bin 1.37 - install $ii.desktop $DESTDIR/usr/share/applications 1.38 + install $ii $install/usr/bin 1.39 + install $ii.desktop $install/usr/share/applications 1.40 find $install -name $ii.desktop \ 1.41 - -exec echo 'Categories=Utility;'>>$install/usr/share/applications/$ii.desktop \; \ 1.42 - -exec sed 's|/opt/|/|g' -i {} \; 1.43 + -exec echo 'Categories=Utility;'>>$install/usr/share/applications/$ii.desktop \; \ 1.44 + -exec sed 's|/opt/|/|g' -i '{}' \; 1.45 done 1.46 } 1.47 1.48 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.49 -genpkg_rules() 1.50 -{ 1.51 +genpkg_rules() { 1.52 cp -a $install/* $fs 1.53 + DEPENDS="libQtCore libQtGui" 1.54 + TAGS="qt" 1.55 }