wok-next diff qt4-examples/receipt @ rev 17455

syslinux/iso2exe: avoid a possible deadlock in progress bar
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Dec 18 12:32:12 2014 +0100 (2014-12-18)
parents a4377148d6dc
children d5aab818505e
line diff
     1.1 --- a/qt4-examples/receipt	Sun Oct 19 01:51:31 2014 +0200
     1.2 +++ b/qt4-examples/receipt	Thu Dec 18 12:32:12 2014 +0100
     1.3 @@ -10,7 +10,7 @@
     1.4  TAGS="qt"
     1.5  
     1.6  DEPENDS="libQtCore libQtGui"
     1.7 -BUILD_DEPENDS="Qt4-dev qmake cmake xorg-libX11-dev"
     1.8 +BUILD_DEPENDS="Qt4-dev qmake"
     1.9  
    1.10  # Rules to configure and make the package.
    1.11  compile_rules()
    1.12 @@ -19,15 +19,17 @@
    1.13  
    1.14  	for i in desktop/screenshot dialogs/findfiles widgets/charactermap;
    1.15  	do
    1.16 -		cd $WOK/qt4/source/qt4-$VERSION/examples/$i
    1.17 +                ii=$(basename $i) && cd $WOK/qt4/source/qt4-$VERSION/examples/$i
    1.18  		rm -rf Makefile moc* *.o
    1.19 -		qmake ${i:8}.pro
    1.20 +		qmake	$ii.pro
    1.21  		sed 's|-O2|'"$CFLAGS"'|' -i Makefile
    1.22  		make $MAKEFLAGS &&
    1.23 -		install ${i:8} $DESTDIR/usr/bin
    1.24 -		install ${i:8}.desktop $DESTDIR/usr/share/applications
    1.25 +		install $ii $DESTDIR/usr/bin
    1.26 +		install $ii.desktop $DESTDIR/usr/share/applications
    1.27 +		find $install -name $ii.desktop \
    1.28 +		-exec echo 'Categories=Utility;'>>$install/usr/share/applications/$ii.desktop \; \
    1.29 +		-exec sed 's|/opt/|/|g' -i {} \;
    1.30  	done
    1.31 -	find $install -name *.desktop -exec sed 's|/opt/|/|g' -i {} \;
    1.32  }
    1.33  
    1.34  # Rules to gen a SliTaz package suitable for Tazpkg.