wok annotate razorqt/receipt @ rev 14194
emacs-pkg-po-mode: tidy receipt
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Tue Mar 12 23:05:24 2013 +0100 (2013-03-12) |
parents | 0dfd215d3c0f |
children | 10e6c72b2c15 |
rev | line source |
---|---|
pankso@12312 | 1 # SliTaz package receipt. |
pankso@12312 | 2 |
pankso@12312 | 3 PACKAGE="razorqt" |
pankso@13506 | 4 VERSION="0.5.0" |
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@13506 | 11 SUGGESTED="razorqt-themes razorqt-appswitcher razorqt-power \ |
pankso@13506 | 12 razorqt-runner razorqt-autosuspend" |
pankso@12312 | 13 |
pankso@13506 | 14 DEPENDS="xorg-libX11 libQtCore libQtDBus libQtGui libQtScript libmagic \ |
pankso@13506 | 15 libstatgrab alsa-lib" |
pankso@13506 | 16 BUILD_DEPENDS="wget cmake Qt4-dev qmake xorg-dev libmagic-dev upower-dev \ |
pankso@13506 | 17 grep libstatgrab-dev alsa-lib-dev polkit-dev polkit-qt-dev glib-dev \ |
pascal@13507 | 18 libgio-dev grep" |
pankso@13506 | 19 |
pankso@13506 | 20 GENERIC_MENUS="no" |
pankso@12312 | 21 |
pankso@12312 | 22 # Rules to configure and make the package. |
pankso@12312 | 23 compile_rules() |
pankso@12312 | 24 { |
pankso@12312 | 25 cd $src |
pankso@12312 | 26 cmake -DCMAKE_INSTALL_PREFIX=/usr . |
pankso@12312 | 27 make && make install |
pankso@12312 | 28 } |
pankso@12312 | 29 |
pankso@12312 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@12312 | 31 genpkg_rules() |
pankso@12312 | 32 { |
pankso@13506 | 33 mkdir -p $fs/usr/lib $fs/usr/share $fs/etc |
pankso@13506 | 34 |
pankso@12312 | 35 # Use SliTaz XDG Menu |
pankso@13506 | 36 cp -a $install/etc $fs |
pankso@13506 | 37 rm -rf $fs/etc/xdg/menus |
pankso@13506 | 38 |
pankso@13506 | 39 # Copy almost everything then split |
pankso@12312 | 40 cp -a $install/usr/bin $fs/usr |
pankso@13506 | 41 cp -f $install/usr/share/xsessions $fs/usr/share |
pankso@13506 | 42 cp -a $install/usr/share/applications $fs/usr/share |
pankso@13506 | 43 |
pankso@12418 | 44 # Split more plugins ? |
pankso@12312 | 45 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@12312 | 46 cp -a $install/usr/lib/razor-* $fs/usr/lib |
pankso@12312 | 47 cp -a $install/usr/share/librazorqt $fs/usr/share |
pankso@12312 | 48 cp -a $install/usr/share/razor $fs/usr/share |
pankso@13506 | 49 |
pankso@12312 | 50 # Appswitcher --> razorqt-appswitcher |
pankso@12312 | 51 rm -f $fs/usr/bin/razor-appswitcher |
pankso@13506 | 52 rm -f $fs/etc/xdg/autostart/razor-appswitcher.desktop |
pankso@13506 | 53 |
pankso@13506 | 54 # Autosuspend --> razorqt-autosuspend |
pankso@13506 | 55 rm -f $fs/usr/bin/razor-autosuspend |
pankso@13506 | 56 rm -f $fs/usr/bin/razor-config-autosuspend |
pankso@13506 | 57 rm -f $fs/etc/xdg/autostart/razor-autosuspend.desktop |
pankso@13506 | 58 rm -f $fs/usr/share/applications/razor-config-autosuspend.desktop |
pankso@13506 | 59 rm -rf $fs/usr/share/razor/razor-autosuspend |
pankso@13506 | 60 rm -rf $fs/usr/share/razor/razor-config-autosuspend |
pankso@13506 | 61 |
pankso@12418 | 62 # Power --> razorqt-power |
pankso@12418 | 63 rm -f $fs/usr/bin/razor-power |
pankso@12418 | 64 rm -rf $fs/usr/share/razor/razor-power |
pankso@13506 | 65 rm -f $fs/usr/share/applications/razor-power.desktop |
pankso@13506 | 66 |
pankso@13506 | 67 # Policykit-agent --> razorqt-policykit-agent |
pankso@13506 | 68 rm -f $fs/usr/bin/razor-policykit-agent |
pankso@13506 | 69 rm -f $fs/etc/xdg/autostart/razor-policykit-agent.desktop |
pankso@13506 | 70 |
pankso@13506 | 71 # Runner --> razorqt-runner |
pankso@13506 | 72 rm -f $fs/usr/bin/razor-runner |
pankso@13506 | 73 rm -rf $fs/usr/share/razor/razor-runner |
pankso@13506 | 74 rm -f $fs/etc/xdg/autostart/razor-runner.desktop |
pankso@13506 | 75 |
pankso@12312 | 76 # Themes --> razorqt-themes |
pankso@12312 | 77 rm -rf $fs/usr/share/razor/themes |
pankso@12312 | 78 mkdir -p $fs/usr/share/razor/themes |
pankso@12312 | 79 cp -a $install/usr/share/razor/themes/light \ |
pankso@12312 | 80 $fs/usr/share/razor/themes |
pankso@13506 | 81 |
pankso@12312 | 82 # Custom SliTaz integration |
pankso@13506 | 83 cp -a $stuff/*.conf $fs/etc/razor |
pankso@12312 | 84 } |
pankso@12312 | 85 |
pankso@12312 | 86 post_install() |
pankso@12312 | 87 { |
pankso@12312 | 88 res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//) |
pankso@12312 | 89 # Adding WM to SLIM available sessions. |
pankso@12312 | 90 if ! echo "$res" | grep -q $PACKAGE; then |
pankso@12312 | 91 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
pankso@12312 | 92 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $1/etc/slim.conf |
pankso@12312 | 93 status |
pankso@12312 | 94 fi |
pankso@12312 | 95 } |
pankso@12312 | 96 |
pankso@12312 | 97 post_remove() |
pankso@12312 | 98 { |
pankso@12312 | 99 # Remove WM from SLIM available sessions. |
pankso@12312 | 100 if grep -q $PACKAGE $1/etc/slim.conf; then |
pankso@12312 | 101 sed -i s/,$PACKAGE// $1/etc/slim.conf |
pankso@12312 | 102 fi |
pankso@12312 | 103 } |