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

sslh: fix bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Aug 27 17:15:42 2012 +0200 (2012-08-27)
parents 6cfe3e516210
children 0dfd215d3c0f
line source
1 # SliTaz package receipt.
3 PACKAGE="razorqt"
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 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"
13 DEPENDS="xorg-libX11 libQtCore libQtDBus libQtGui libQtScript libmagic"
14 BUILD_DEPENDS="wget cmake Qt4-dev qmake xorg-dev libmagic-dev upower-dev"
15 # polkit-dev polkit-qt-dev doxygen
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/xsessions
29 # Use SliTaz XDG Menu
30 #cp -a $install/etc $fs
31 cp -a $install/usr/bin $fs/usr
32 cp -f $install/usr/share/xsessions/razor.desktop \
33 $fs/usr/share/xsessions
35 # Split more plugins ?
36 cp -a $install/usr/lib/*.so* $fs/usr/lib
37 cp -a $install/usr/lib/razor-* $fs/usr/lib
38 cp -a $install/usr/share/librazorqt $fs/usr/share
39 cp -a $install/usr/share/razor $fs/usr/share
41 # Appswitcher --> razorqt-appswitcher
42 rm -f $fs/usr/bin/razor-appswitcher
44 # Power --> razorqt-power
45 rm -f $fs/usr/bin/razor-power
46 rm -rf $fs/usr/share/razor/razor-power
48 # Themes --> razorqt-themes
49 rm -rf $fs/usr/share/razor/themes
50 mkdir -p $fs/usr/share/razor/themes
51 cp -a $install/usr/share/razor/themes/light \
52 $fs/usr/share/razor/themes
54 # Custom SliTaz integration
55 cp -a $stuff/*.conf $fs/usr/share/razor
56 }
58 post_install()
59 {
60 res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
61 # Adding WM to SLIM available sessions.
62 if ! echo "$res" | grep -q $PACKAGE; then
63 echo -n "Adding $PACKAGE to /etc/slim.conf..."
64 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $1/etc/slim.conf
65 status
66 fi
67 }
69 post_remove()
70 {
71 # Remove WM from SLIM available sessions.
72 if grep -q $PACKAGE $1/etc/slim.conf; then
73 sed -i s/,$PACKAGE// $1/etc/slim.conf
74 fi
75 }