wok annotate qt4-examples/receipt @ rev 24757

pkg-config: cheat configure
author Hans-G?nter Theisgen
date Fri Mar 18 06:53:58 2022 +0100 (2022-03-18)
parents 941f4a0a3594
children
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"
pascal@24746 9 WEB_SITE="https://qt-project.org/"
pascal@22338 10 WANTED="qt4"
psychomaniak@17245 11 TAGS="qt"
psychomaniak@17245 12
psychomaniak@17245 13 DEPENDS="libQtCore libQtGui"
psychomaniak@17254 14 BUILD_DEPENDS="Qt4-dev qmake"
psychomaniak@17245 15
psychomaniak@17245 16 # Rules to configure and make the package.
psychomaniak@17245 17 compile_rules()
psychomaniak@17245 18 {
pascal@22338 19 mkdir -p $DESTDIR/usr/bin $DESTDIR/usr/share/applications
psychomaniak@17245 20
psychomaniak@17245 21 for i in desktop/screenshot dialogs/findfiles widgets/charactermap;
psychomaniak@17245 22 do
pascal@22339 23 ii=$(basename $i) && cd $src/examples/$i
psychomaniak@17245 24 rm -rf Makefile moc* *.o
psychomaniak@17254 25 qmake $ii.pro
psychomaniak@17245 26 sed 's|-O2|'"$CFLAGS"'|' -i Makefile
psychomaniak@17245 27 make $MAKEFLAGS &&
psychomaniak@17254 28 install $ii $DESTDIR/usr/bin
psychomaniak@17254 29 install $ii.desktop $DESTDIR/usr/share/applications
pascal@22338 30 find $DESTDIR -name $ii.desktop \
pascal@22338 31 -exec echo 'Categories=Utility;'>>$DESTDIR/usr/share/applications/$ii.desktop \; \
psychomaniak@17254 32 -exec sed 's|/opt/|/|g' -i {} \;
psychomaniak@17245 33 done
psychomaniak@17245 34 }
psychomaniak@17245 35
psychomaniak@17245 36 # Rules to gen a SliTaz package suitable for Tazpkg.
psychomaniak@17245 37 genpkg_rules()
psychomaniak@17245 38 {
psychomaniak@17245 39 cp -a $install/* $fs
psychomaniak@17245 40 }