wok-6.x view razorqt/receipt @ rev 14329

Up: connman (1.12)
author Dominique Corbex <domcox@slitaz.org>
date Fri Apr 12 19:56:50 2013 +0200 (2013-04-12)
parents 0dfd215d3c0f
children 10e6c72b2c15
line source
1 # SliTaz package receipt.
3 PACKAGE="razorqt"
4 VERSION="0.5.0"
5 CATEGORY="x-window"
6 SHORT_DESC="Light and fast QT based Desktop Environment."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
9 WEB_SITE="http://razor-qt.org/"
10 WGET_URL="https://github.com/downloads/Razor-qt/razor-qt/$TARBALL"
11 SUGGESTED="razorqt-themes razorqt-appswitcher razorqt-power \
12 razorqt-runner razorqt-autosuspend"
14 DEPENDS="xorg-libX11 libQtCore libQtDBus libQtGui libQtScript libmagic \
15 libstatgrab alsa-lib"
16 BUILD_DEPENDS="wget cmake Qt4-dev qmake xorg-dev libmagic-dev upower-dev \
17 grep libstatgrab-dev alsa-lib-dev polkit-dev polkit-qt-dev glib-dev \
18 libgio-dev grep"
20 GENERIC_MENUS="no"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cd $src
26 cmake -DCMAKE_INSTALL_PREFIX=/usr .
27 make && make install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/lib $fs/usr/share $fs/etc
35 # Use SliTaz XDG Menu
36 cp -a $install/etc $fs
37 rm -rf $fs/etc/xdg/menus
39 # Copy almost everything then split
40 cp -a $install/usr/bin $fs/usr
41 cp -f $install/usr/share/xsessions $fs/usr/share
42 cp -a $install/usr/share/applications $fs/usr/share
44 # Split more plugins ?
45 cp -a $install/usr/lib/*.so* $fs/usr/lib
46 cp -a $install/usr/lib/razor-* $fs/usr/lib
47 cp -a $install/usr/share/librazorqt $fs/usr/share
48 cp -a $install/usr/share/razor $fs/usr/share
50 # Appswitcher --> razorqt-appswitcher
51 rm -f $fs/usr/bin/razor-appswitcher
52 rm -f $fs/etc/xdg/autostart/razor-appswitcher.desktop
54 # Autosuspend --> razorqt-autosuspend
55 rm -f $fs/usr/bin/razor-autosuspend
56 rm -f $fs/usr/bin/razor-config-autosuspend
57 rm -f $fs/etc/xdg/autostart/razor-autosuspend.desktop
58 rm -f $fs/usr/share/applications/razor-config-autosuspend.desktop
59 rm -rf $fs/usr/share/razor/razor-autosuspend
60 rm -rf $fs/usr/share/razor/razor-config-autosuspend
62 # Power --> razorqt-power
63 rm -f $fs/usr/bin/razor-power
64 rm -rf $fs/usr/share/razor/razor-power
65 rm -f $fs/usr/share/applications/razor-power.desktop
67 # Policykit-agent --> razorqt-policykit-agent
68 rm -f $fs/usr/bin/razor-policykit-agent
69 rm -f $fs/etc/xdg/autostart/razor-policykit-agent.desktop
71 # Runner --> razorqt-runner
72 rm -f $fs/usr/bin/razor-runner
73 rm -rf $fs/usr/share/razor/razor-runner
74 rm -f $fs/etc/xdg/autostart/razor-runner.desktop
76 # Themes --> razorqt-themes
77 rm -rf $fs/usr/share/razor/themes
78 mkdir -p $fs/usr/share/razor/themes
79 cp -a $install/usr/share/razor/themes/light \
80 $fs/usr/share/razor/themes
82 # Custom SliTaz integration
83 cp -a $stuff/*.conf $fs/etc/razor
84 }
86 post_install()
87 {
88 res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
89 # Adding WM to SLIM available sessions.
90 if ! echo "$res" | grep -q $PACKAGE; then
91 echo -n "Adding $PACKAGE to /etc/slim.conf..."
92 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $1/etc/slim.conf
93 status
94 fi
95 }
97 post_remove()
98 {
99 # Remove WM from SLIM available sessions.
100 if grep -q $PACKAGE $1/etc/slim.conf; then
101 sed -i s/,$PACKAGE// $1/etc/slim.conf
102 fi
103 }