wok-current view libQtGui/receipt @ rev 25728

Merge wok for both arch and few updates
author Stanislas Leduc <shann@slitaz.org>
date Thu Dec 05 08:39:45 2024 +0000 (2 weeks ago)
parents cb67b4f8be05
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libQtGui"
4 VERSION="4.8.7"
5 CATEGORY="development"
6 SHORT_DESC="Qt Gui Library"
7 MAINTAINER="allan316@gmail.com"
8 LICENSE="GPL3 LGPL2.1"
9 WANTED="qt4"
11 DEPENDS="libQtCore expat fontconfig freetype xorg-libICE xorg-libSM \
12 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXi xorg-libXrandr \
13 xorg-libXrender libpng"
14 WEB_SITE="https://qt-project.org/"
16 HOST_ARCH="i486 x86_64"
18 # Rules to gen a SliTaz package suitable for Tazpkg.
19 genpkg_rules()
20 {
21 mkdir -p $fs/usr/lib
22 cp -a $install/usr/lib/libQtGui.so* $fs/usr/lib
24 mkdir -p $fs/usr/lib/qt/plugins/imageformats
25 cp -a $install/usr/lib/qt/plugins/imageformats/libqjpeg.so $fs/usr/lib/qt/plugins/imageformats
26 cp -a $install/usr/lib/qt/plugins/imageformats/libqgif.so $fs/usr/lib/qt/plugins/imageformats
28 mkdir -p $fs/etc/skel/.config $fs/etc/xdg
29 cp $stuff/Trolltech.conf $fs/etc/skel/.config/
30 cp $stuff/Trolltech.conf $fs/etc/xdg/
31 }
33 post_install()
34 {
35 for i in $(ls "$1/home" 2> /dev/null); do
36 [ -f "$1/home/$i/.config/Trolltech.conf" ] && continue
37 cp "$1/etc/skel/.config/Trolltech.conf" "$1/home/$i/.config"
38 [ -d $PKGS_DB/gtk+ ] && sed 's|Cleanlooks|gtk|' -i "$1/home/$i/.config/Trolltech.conf"
39 chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.config"
40 done
41 }