wok view razorqt/receipt @ rev 21367

updated litmus (0.12.1 -> 0.13)
author Hans-G?nter Theisgen
date Sun Apr 21 17:10:28 2019 +0100 (2019-04-21)
parents 970c5ec9a60a
children c5bb6b8ba595
line source
1 # SliTaz package receipt.
3 PACKAGE="razorqt"
4 VERSION="0.5.2"
5 CATEGORY="x-window"
6 SHORT_DESC="Light and fast QT based Desktop Environment."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2 LGPL2.1"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="https://github.com/Razor-qt/razor-qt"
11 WGET_URL="https://github.com/Razor-qt/razor-qt/archive/$VERSION.tar.gz"
12 SUGGESTED="razorqt-themes razorqt-appswitcher razorqt-power \
13 razorqt-runner razorqt-autosuspend"
15 BUILD_DEPENDS="cmake Qt4-dev qmake xorg-dev libmagic-dev upower-dev \
16 grep libstatgrab-dev alsa-lib-dev polkit-dev polkit-qt-dev glib-dev \
17 libgio-dev lightdm-qt-dev imagemagick"
18 DEPENDS="libQtDBus libQtGui libmagic libstatgrab xorg-libXcomposite \
19 xorg-libXcursor xorg-libXdamage lightdm-qt"
21 GENERIC_MENUS="no"
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cmake -DCMAKE_INSTALL_PREFIX=/usr .
27 make && make install
29 # save space (png -> jpg)
30 cd $install/usr/share/razor/themes/light
31 convert ./simple_blue_widescreen.png ./simple_blue_widescreen.jpg
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 # copy all, then remove unneeded
38 cp -a $install/* $fs
40 # Dev-files --> razorqt-dev
41 rm -rf $fs/usr/include
42 rm -rf $fs/usr/lib/pkgconfig
44 # Language-files --> razorqt-locale-*
45 find $fs -name '*.qm' -delete
47 # Appswitcher --> razorqt-appswitcher
48 rm -f $fs/usr/bin/razor-appswitcher
49 rm -f $fs/etc/xdg/autostart/razor-appswitcher.desktop
51 # Autosuspend --> razorqt-autosuspend
52 rm -f $fs/usr/bin/razor-autosuspend
53 rm -f $fs/usr/bin/razor-config-autosuspend
54 rm -f $fs/etc/xdg/autostart/razor-autosuspend.desktop
55 rm -f $fs/usr/share/applications/razor-config-autosuspend.desktop
57 # Policykit-agent --> razorqt-policykit-agent
58 rm -f $fs/usr/bin/razor-policykit-agent
59 rm -f $fs/etc/xdg/autostart/razor-policykit-agent.desktop
61 # Power --> razorqt-power
62 rm -f $fs/usr/bin/razor-power
63 rm -f $fs/usr/share/applications/razor-power.desktop
65 # Runner --> razorqt-runner
66 rm -f $fs/usr/bin/razor-runner
67 rm -f $fs/etc/xdg/autostart/razor-runner.desktop
69 # Themes (all but light) --> razorqt-themes
70 find $fs/usr/share/razor/themes -maxdepth 1 -mindepth 1 -type d \
71 \( ! -name light \) -exec rm -rf \{\} \;
72 rm -f $fs/usr/share/razor/themes/light/simple_blue_widescreen.png
73 rm -f $fs/usr/share/razor/themes/light/96640-simple_blue_widescreen.svg
74 sed 's|png|jpg|' -i $fs/usr/share/razor/themes/light/wallpaper.cfg
76 # Remove confupdate (Port desktop.conf syntax from 0.4.x to 0.5.0 format)
77 rm -f $fs/usr/bin/razor-confupdate
78 rm -rf $fs/usr/lib/razor-confupdate_bin
79 rm -rf $fs/usr/share/razor/razor-confupdate
81 # Remove heavy graphics
82 rm -f $fs/usr/share/razor/graphics/rqt*
84 # Remove file - not use KDM
85 rm -rf $fs/usr/share/apps
87 # Remove empty folders
88 for dir in $(find $fs/usr/share -type d); do
89 rmdir --ignore-fail-on-non-empty $dir
90 done
92 # Custom SliTaz integration
93 cp -a $stuff/*.conf $fs/etc/xdg/razor
94 }
96 post_install()
97 {
98 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
99 # Adding WM to SLIM available sessions.
100 if ! echo "$res" | grep -q $PACKAGE; then
101 echo
102 echo -n "Adding $PACKAGE to /etc/slim.conf..."
103 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf"
104 status
105 fi
106 true
107 }
109 post_remove()
110 {
111 # Remove WM from SLIM available sessions.
112 if grep -q $PACKAGE "$1/etc/slim.conf"; then
113 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
114 fi
115 }