wok-current annotate razorqt/receipt @ rev 12564
udev: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Apr 28 18:52:14 2012 +0200 (2012-04-28) |
parents | 6cfe3e516210 |
children | 0dfd215d3c0f |
rev | line source |
---|---|
pankso@12312 | 1 # SliTaz package receipt. |
pankso@12312 | 2 |
pankso@12312 | 3 PACKAGE="razorqt" |
pankso@12312 | 4 VERSION="0.4.1" |
pankso@12312 | 5 CATEGORY="x-window" |
pankso@12312 | 6 SHORT_DESC="Light and fast QT based Desktop Environment." |
pankso@12312 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@12312 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@12312 | 9 WEB_SITE="http://razor-qt.org/" |
pankso@12312 | 10 WGET_URL="https://github.com/downloads/Razor-qt/razor-qt/$TARBALL" |
pankso@12418 | 11 SUGGESTED="razorqt-themes razorqt-appswitcher razorqt-power" |
pankso@12312 | 12 |
pankso@12312 | 13 DEPENDS="xorg-libX11 libQtCore libQtDBus libQtGui libQtScript libmagic" |
pankso@12418 | 14 BUILD_DEPENDS="wget cmake Qt4-dev qmake xorg-dev libmagic-dev upower-dev" |
pankso@12312 | 15 # polkit-dev polkit-qt-dev doxygen |
pankso@12312 | 16 |
pankso@12312 | 17 # Rules to configure and make the package. |
pankso@12312 | 18 compile_rules() |
pankso@12312 | 19 { |
pankso@12312 | 20 cd $src |
pankso@12312 | 21 cmake -DCMAKE_INSTALL_PREFIX=/usr . |
pankso@12312 | 22 make && make install |
pankso@12312 | 23 } |
pankso@12312 | 24 |
pankso@12312 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@12312 | 26 genpkg_rules() |
pankso@12312 | 27 { |
pankso@12418 | 28 mkdir -p $fs/usr/lib $fs/usr/share/xsessions |
pankso@12312 | 29 # Use SliTaz XDG Menu |
pankso@12312 | 30 #cp -a $install/etc $fs |
pankso@12312 | 31 cp -a $install/usr/bin $fs/usr |
pankso@12418 | 32 cp -f $install/usr/share/xsessions/razor.desktop \ |
pankso@12418 | 33 $fs/usr/share/xsessions |
pankso@12312 | 34 |
pankso@12418 | 35 # Split more plugins ? |
pankso@12312 | 36 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@12312 | 37 cp -a $install/usr/lib/razor-* $fs/usr/lib |
pankso@12312 | 38 cp -a $install/usr/share/librazorqt $fs/usr/share |
pankso@12312 | 39 cp -a $install/usr/share/razor $fs/usr/share |
pankso@12312 | 40 |
pankso@12312 | 41 # Appswitcher --> razorqt-appswitcher |
pankso@12312 | 42 rm -f $fs/usr/bin/razor-appswitcher |
pankso@12312 | 43 |
pankso@12418 | 44 # Power --> razorqt-power |
pankso@12418 | 45 rm -f $fs/usr/bin/razor-power |
pankso@12418 | 46 rm -rf $fs/usr/share/razor/razor-power |
pankso@12418 | 47 |
pankso@12312 | 48 # Themes --> razorqt-themes |
pankso@12312 | 49 rm -rf $fs/usr/share/razor/themes |
pankso@12312 | 50 mkdir -p $fs/usr/share/razor/themes |
pankso@12312 | 51 cp -a $install/usr/share/razor/themes/light \ |
pankso@12312 | 52 $fs/usr/share/razor/themes |
pankso@12312 | 53 |
pankso@12312 | 54 # Custom SliTaz integration |
pankso@12312 | 55 cp -a $stuff/*.conf $fs/usr/share/razor |
pankso@12312 | 56 } |
pankso@12312 | 57 |
pankso@12312 | 58 post_install() |
pankso@12312 | 59 { |
pankso@12312 | 60 res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//) |
pankso@12312 | 61 # Adding WM to SLIM available sessions. |
pankso@12312 | 62 if ! echo "$res" | grep -q $PACKAGE; then |
pankso@12312 | 63 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
pankso@12312 | 64 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $1/etc/slim.conf |
pankso@12312 | 65 status |
pankso@12312 | 66 fi |
pankso@12312 | 67 } |
pankso@12312 | 68 |
pankso@12312 | 69 post_remove() |
pankso@12312 | 70 { |
pankso@12312 | 71 # Remove WM from SLIM available sessions. |
pankso@12312 | 72 if grep -q $PACKAGE $1/etc/slim.conf; then |
pankso@12312 | 73 sed -i s/,$PACKAGE// $1/etc/slim.conf |
pankso@12312 | 74 fi |
pankso@12312 | 75 } |