wok-current view libQt5Gui/receipt @ rev 24109

Up xplanet (1.3.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Sep 28 09:25:18 2021 +0000 (2021-09-28)
parents
children 5926178cd6fa
line source
1 # SliTaz package receipt.
3 PACKAGE="libQt5Gui"
4 VERSION="5.14.2"
5 CATEGORY="development"
6 SHORT_DESC="Qt5 Gui Library."
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="GPL3 LGPL3"
9 WEB_SITE="https://www.qt.io/"
11 DEPENDS="expat fontconfig freetype libpng libQt5Core xorg-libICE xorg-libSM
12 xorg-libX11 xorg-libXau xorg-libXdmcp xorg-libXext xorg-libXi
13 xorg-libXrandr xorg-libXrender"
14 WANTED="qt5"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 mkdir -p $fs/usr/lib/qt5/plugins/imageformats
20 mkdir -p $fs/etc/skel/.config
21 mkdir -p $fs/etc/xdg
23 cp -a $install/usr/lib/libQt5Gui.so* $fs/usr/lib
25 cp -a $install/usr/lib/qt5/plugins/imageformats/libqjpeg.so \
26 $fs/usr/lib/qt5/plugins/imageformats
27 cp -a $install/usr/lib/qt5/plugins/imageformats/libqgif.so \
28 $fs/usr/lib/qt5/plugins/imageformats
30 cp $stuff/Trolltech.conf $fs/etc/skel/.config/
31 cp $stuff/Trolltech.conf $fs/etc/xdg/
32 }
34 post_install()
35 {
36 for i in $(ls "$1/home" 2> /dev/null)
37 do
38 [ -f "$1/home/$i/.config/Trolltech.conf" ] && continue
39 cp "$1/etc/skel/.config/Trolltech.conf" "$1/home/$i/.config"
40 [ -d $PKGS_DB/gtk+ ] && sed 's|Cleanlooks|gtk|' -i "$1/home/$i/.config/Trolltech.conf"
41 chroot "$1/" chown -R $(stat -c "%u.%g" "$1/home/$i") "/home/$i/.config"
42 done
43 }