wok-6.x diff qt4-examples/receipt @ rev 19192

syslinux: no i18n menu with custom config
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Jun 05 16:28:03 2016 +0200 (2016-06-05)
parents a4377148d6dc
children 9cb6a23202c2
line diff
     1.1 --- a/qt4-examples/receipt	Sun Oct 19 01:51:31 2014 +0200
     1.2 +++ b/qt4-examples/receipt	Sun Jun 05 16:28:03 2016 +0200
     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.