wok-6.x view razor-qt/receipt @ rev 12281
Add razor-qt (Light, fast QT based Desktop Environment)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun Apr 15 14:00:30 2012 +0200 (2012-04-15) |
parents | |
children | 8e410d8c4dd2 |
line source
1 # SliTaz package receipt.
3 PACKAGE="razor-qt"
4 VERSION="0.4.1"
5 CATEGORY="x-window"
6 SHORT_DESC="Light and fast QT based Desktop Environment."
7 MAINTAINER="pankso@slitaz.org"
8 SOURCE="razorqt"
9 TARBALL="$SOURCE-$VERSION.tar.bz2"
10 WEB_SITE="http://razor-qt.org/"
11 WGET_URL="https://github.com/downloads/Razor-qt/razor-qt/$TARBALL"
12 SUGGESTED="razor-qt-themes"
14 DEPENDS="xorg-libX11 libQtCore libQtDBus libQtGui libQtScript libmagic"
15 BUILD_DEPENDS="wget cmake Qt4-dev qmake xorg-dev libmagic-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 cmake -DCMAKE_INSTALL_PREFIX=/usr .
22 make && make install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/lib $fs/usr/share
29 # Use SliTaz XDG Menu
30 #cp -a $install/etc $fs
31 cp -a $install/usr/bin $fs/usr
32 # Split plugins ?
33 cp -a $install/usr/lib/*.so* $fs/usr/lib
34 cp -a $install/usr/lib/razor-* $fs/usr/lib
35 cp -a $install/usr/share/librazorqt $fs/usr/share
36 cp -a $install/usr/share/razor $fs/usr/share
37 # Themes --> razor-qt-themes
38 rm -rf $fs/usr/share/razor/themes
39 mkdir -p $fs/usr/share/razor/themes
40 cp -a $install/usr/share/razor/themes/light $fs/usr/share/razor/themes
41 # Custom SliTaz integration
42 cp -a $stuff/*.conf $fs/usr/share/razor
43 }
45 post_install()
46 {
47 res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
48 # Adding WM to SLIM available sessions.
49 if ! echo "$res" | grep -q $PACKAGE; then
50 echo -n "Adding $PACKAGE to /etc/slim.conf..."
51 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf
52 status
53 fi
54 }
56 post_remove()
57 {
58 # Remove WM from SLIM available sessions.
59 if grep -q $PACKAGE $1/etc/slim.conf; then
60 sed -i s/,$PACKAGE// $1/etc/slim.conf
61 fi
62 }