wok view qt4-examples/receipt @ rev 25327
updated lv2 (1.18.2 -> 1.18.4)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jul 23 10:15:00 2022 +0100 (2022-07-23) |
parents | 941f4a0a3594 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="qt4-examples"
4 VERSION="4.8.7"
5 CATEGORY="misc"
6 SHORT_DESC="Screenshot, FindFiles, CharacterMap"
7 MAINTAINER="psychomaniak@xakep.ru"
8 LICENSE="GPL3 LGPL2.1"
9 WEB_SITE="https://qt-project.org/"
10 WANTED="qt4"
11 TAGS="qt"
13 DEPENDS="libQtCore libQtGui"
14 BUILD_DEPENDS="Qt4-dev qmake"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 mkdir -p $DESTDIR/usr/bin $DESTDIR/usr/share/applications
21 for i in desktop/screenshot dialogs/findfiles widgets/charactermap;
22 do
23 ii=$(basename $i) && cd $src/examples/$i
24 rm -rf Makefile moc* *.o
25 qmake $ii.pro
26 sed 's|-O2|'"$CFLAGS"'|' -i Makefile
27 make $MAKEFLAGS &&
28 install $ii $DESTDIR/usr/bin
29 install $ii.desktop $DESTDIR/usr/share/applications
30 find $DESTDIR -name $ii.desktop \
31 -exec echo 'Categories=Utility;'>>$DESTDIR/usr/share/applications/$ii.desktop \; \
32 -exec sed 's|/opt/|/|g' -i {} \;
33 done
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 cp -a $install/* $fs
40 }