wok view razorqt/receipt @ rev 18810
Up python-pygments (2.0.2)
author | Paul Issott <paul@slitaz.org> |
---|---|
date | Thu Jan 14 19:20:44 2016 +0000 (2016-01-14) |
parents | 1067bb7f1e24 |
children | 023f0e633825 |
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="http://razor-qt.org/"
11 WGET_URL="http://razor-qt.org/downloads/$TARBALL"
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 cd $src
27 cmake -DCMAKE_INSTALL_PREFIX=/usr .
28 make && make install
30 # save space (png -> jpg)
31 cd $install/usr/share/razor/themes/light
32 convert ./simple_blue_widescreen.png ./simple_blue_widescreen.jpg
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 # copy all, then remove unneeded
39 cp -a $install/* $fs
41 # Dev-files --> razorqt-dev
42 rm -rf $fs/usr/include
43 rm -rf $fs/usr/lib/pkgconfig
45 # Language-files --> razorqt-locale-*
46 find $fs -name '*.qm' -delete
48 # Appswitcher --> razorqt-appswitcher
49 rm -f $fs/usr/bin/razor-appswitcher
50 rm -f $fs/etc/xdg/autostart/razor-appswitcher.desktop
52 # Autosuspend --> razorqt-autosuspend
53 rm -f $fs/usr/bin/razor-autosuspend
54 rm -f $fs/usr/bin/razor-config-autosuspend
55 rm -f $fs/etc/xdg/autostart/razor-autosuspend.desktop
56 rm -f $fs/usr/share/applications/razor-config-autosuspend.desktop
58 # Policykit-agent --> razorqt-policykit-agent
59 rm -f $fs/usr/bin/razor-policykit-agent
60 rm -f $fs/etc/xdg/autostart/razor-policykit-agent.desktop
62 # Power --> razorqt-power
63 rm -f $fs/usr/bin/razor-power
64 rm -f $fs/usr/share/applications/razor-power.desktop
66 # Runner --> razorqt-runner
67 rm -f $fs/usr/bin/razor-runner
68 rm -f $fs/etc/xdg/autostart/razor-runner.desktop
70 # Themes (all but light) --> razorqt-themes
71 find $fs/usr/share/razor/themes -maxdepth 1 -mindepth 1 -type d \
72 \( ! -name light \) -exec rm -rf \{\} \;
73 rm -f $fs/usr/share/razor/themes/light/simple_blue_widescreen.png
74 rm -f $fs/usr/share/razor/themes/light/96640-simple_blue_widescreen.svg
75 sed 's|png|jpg|' -i $fs/usr/share/razor/themes/light/wallpaper.cfg
77 # Remove confupdate (Port desktop.conf syntax from 0.4.x to 0.5.0 format)
78 rm -f $fs/usr/bin/razor-confupdate
79 rm -rf $fs/usr/lib/razor-confupdate_bin
80 rm -rf $fs/usr/share/razor/razor-confupdate
82 # Remove heavy graphics
83 rm -f $fs/usr/share/razor/graphics/rqt*
85 # Remove file - not use KDM
86 rm -rf $fs/usr/share/apps
88 # Remove empty folders
89 for dir in $(find $fs/usr/share -type d); do
90 rmdir --ignore-fail-on-non-empty $dir
91 done
93 # Custom SliTaz integration
94 cp -a $stuff/*.conf $fs/etc/razor
95 }
97 post_install()
98 {
99 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
100 # Adding WM to SLIM available sessions.
101 if ! echo "$res" | grep -q $PACKAGE; then
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 }