wok view razorqt/receipt @ rev 12333

Up: libxml++ to 2.34.2.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Apr 19 08:58:35 2012 +0000 (2012-04-19)
parents
children ae3c4782f920
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"
13 DEPENDS="xorg-libX11 libQtCore libQtDBus libQtGui libQtScript libmagic"
14 BUILD_DEPENDS="wget cmake Qt4-dev qmake xorg-dev libmagic-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
29 # Use SliTaz XDG Menu
30 #cp -a $install/etc $fs
31 cp -a $install/usr/bin $fs/usr
33 # Split plugins ?
34 cp -a $install/usr/lib/*.so* $fs/usr/lib
35 cp -a $install/usr/lib/razor-* $fs/usr/lib
36 cp -a $install/usr/share/librazorqt $fs/usr/share
37 cp -a $install/usr/share/razor $fs/usr/share
39 # Appswitcher --> razorqt-appswitcher
40 rm -f $fs/usr/bin/razor-appswitcher
42 # Themes --> razorqt-themes
43 rm -rf $fs/usr/share/razor/themes
44 mkdir -p $fs/usr/share/razor/themes
45 cp -a $install/usr/share/razor/themes/light \
46 $fs/usr/share/razor/themes
48 # Custom SliTaz integration
49 cp -a $stuff/*.conf $fs/usr/share/razor
50 }
52 post_install()
53 {
54 res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
55 # Adding WM to SLIM available sessions.
56 if ! echo "$res" | grep -q $PACKAGE; then
57 echo -n "Adding $PACKAGE to /etc/slim.conf..."
58 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $1/etc/slim.conf
59 status
60 fi
61 }
63 post_remove()
64 {
65 # Remove WM from SLIM available sessions.
66 if grep -q $PACKAGE $1/etc/slim.conf; then
67 sed -i s/,$PACKAGE// $1/etc/slim.conf
68 fi
69 }