wok-6.x annotate razorqt/receipt @ rev 15865
aufs: typo
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Jan 30 17:31:57 2014 +0000 (2014-01-30) |
parents | 10e6c72b2c15 |
children | 1067bb7f1e24 |
rev | line source |
---|---|
pankso@12312 | 1 # SliTaz package receipt. |
pankso@12312 | 2 |
pankso@12312 | 3 PACKAGE="razorqt" |
al@15191 | 4 VERSION="0.5.2" |
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" |
pascal@15021 | 8 LICENSE="GPL2 LGPL2.1" |
pankso@12312 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@12312 | 10 WEB_SITE="http://razor-qt.org/" |
al@15191 | 11 WGET_URL="http://razor-qt.org/downloads/$TARBALL" |
pankso@13506 | 12 SUGGESTED="razorqt-themes razorqt-appswitcher razorqt-power \ |
pankso@13506 | 13 razorqt-runner razorqt-autosuspend" |
pankso@12312 | 14 |
al@15191 | 15 BUILD_DEPENDS="cmake Qt4-dev qmake xorg-dev libmagic-dev upower-dev \ |
pankso@13506 | 16 grep libstatgrab-dev alsa-lib-dev polkit-dev polkit-qt-dev glib-dev \ |
al@15191 | 17 libgio-dev lightdm-qt-dev imagemagick" |
al@15191 | 18 DEPENDS="libQtDBus libQtGui libmagic libstatgrab xorg-libXcomposite \ |
al@15191 | 19 xorg-libXcursor xorg-libXdamage lightdm-qt" |
pankso@13506 | 20 |
pankso@13506 | 21 GENERIC_MENUS="no" |
pankso@12312 | 22 |
pankso@12312 | 23 # Rules to configure and make the package. |
pankso@12312 | 24 compile_rules() |
pankso@12312 | 25 { |
pankso@12312 | 26 cd $src |
pankso@12312 | 27 cmake -DCMAKE_INSTALL_PREFIX=/usr . |
pankso@12312 | 28 make && make install |
al@15191 | 29 |
al@15191 | 30 # save space (png -> jpg) |
al@15191 | 31 cd $install/usr/share/razor/themes/light |
al@15191 | 32 convert ./simple_blue_widescreen.png ./simple_blue_widescreen.jpg |
pankso@12312 | 33 } |
pankso@12312 | 34 |
pankso@12312 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@12312 | 36 genpkg_rules() |
pankso@12312 | 37 { |
al@15191 | 38 # copy all, then remove unneeded |
al@15191 | 39 cp -a $install/* $fs |
pankso@13506 | 40 |
al@15191 | 41 # Dev-files --> razorqt-dev |
al@15191 | 42 rm -rf $fs/usr/include |
al@15191 | 43 rm -rf $fs/usr/lib/pkgconfig |
pankso@13506 | 44 |
al@15191 | 45 # Language-files --> razorqt-locale-* |
al@15191 | 46 find $fs -name '*.qm' -delete |
pankso@13506 | 47 |
pankso@12312 | 48 # Appswitcher --> razorqt-appswitcher |
pankso@12312 | 49 rm -f $fs/usr/bin/razor-appswitcher |
pankso@13506 | 50 rm -f $fs/etc/xdg/autostart/razor-appswitcher.desktop |
pankso@13506 | 51 |
pankso@13506 | 52 # Autosuspend --> razorqt-autosuspend |
pankso@13506 | 53 rm -f $fs/usr/bin/razor-autosuspend |
pankso@13506 | 54 rm -f $fs/usr/bin/razor-config-autosuspend |
pankso@13506 | 55 rm -f $fs/etc/xdg/autostart/razor-autosuspend.desktop |
pankso@13506 | 56 rm -f $fs/usr/share/applications/razor-config-autosuspend.desktop |
pankso@13506 | 57 |
pankso@13506 | 58 # Policykit-agent --> razorqt-policykit-agent |
pankso@13506 | 59 rm -f $fs/usr/bin/razor-policykit-agent |
pankso@13506 | 60 rm -f $fs/etc/xdg/autostart/razor-policykit-agent.desktop |
pankso@13506 | 61 |
al@15191 | 62 # Power --> razorqt-power |
al@15191 | 63 rm -f $fs/usr/bin/razor-power |
al@15191 | 64 rm -f $fs/usr/share/applications/razor-power.desktop |
al@15191 | 65 |
pankso@13506 | 66 # Runner --> razorqt-runner |
pankso@13506 | 67 rm -f $fs/usr/bin/razor-runner |
pankso@13506 | 68 rm -f $fs/etc/xdg/autostart/razor-runner.desktop |
pankso@13506 | 69 |
al@15191 | 70 # Themes (all but light) --> razorqt-themes |
al@15191 | 71 find $fs/usr/share/razor/themes -maxdepth 1 -mindepth 1 -type d \ |
al@15191 | 72 \( ! -name light \) -exec rm -rf \{\} \; |
al@15191 | 73 rm -f $fs/usr/share/razor/themes/light/simple_blue_widescreen.png |
al@15191 | 74 rm -f $fs/usr/share/razor/themes/light/96640-simple_blue_widescreen.svg |
al@15191 | 75 sed 's|png|jpg|' -i $fs/usr/share/razor/themes/light/wallpaper.cfg |
al@15191 | 76 |
al@15191 | 77 # Remove confupdate (Port desktop.conf syntax from 0.4.x to 0.5.0 format) |
al@15191 | 78 rm -f $fs/usr/bin/razor-confupdate |
al@15191 | 79 rm -rf $fs/usr/lib/razor-confupdate_bin |
al@15191 | 80 rm -rf $fs/usr/share/razor/razor-confupdate |
al@15191 | 81 |
al@15191 | 82 # Remove heavy graphics |
al@15191 | 83 rm -f $fs/usr/share/razor/graphics/rqt* |
al@15191 | 84 |
al@15191 | 85 # Remove file - not use KDM |
al@15191 | 86 rm -rf $fs/usr/share/apps |
al@15191 | 87 |
al@15191 | 88 # Remove empty folders |
al@15191 | 89 for dir in $(find $fs/usr/share -type d); do |
al@15191 | 90 rmdir --ignore-fail-on-non-empty $dir |
al@15191 | 91 done |
pankso@13506 | 92 |
pankso@12312 | 93 # Custom SliTaz integration |
pankso@13506 | 94 cp -a $stuff/*.conf $fs/etc/razor |
pankso@12312 | 95 } |
pankso@12312 | 96 |
pankso@12312 | 97 post_install() |
pankso@12312 | 98 { |
pankso@12312 | 99 res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//) |
pankso@12312 | 100 # Adding WM to SLIM available sessions. |
pankso@12312 | 101 if ! echo "$res" | grep -q $PACKAGE; then |
pankso@12312 | 102 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
pankso@12312 | 103 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $1/etc/slim.conf |
pankso@12312 | 104 status |
pankso@12312 | 105 fi |
pankso@12312 | 106 } |
pankso@12312 | 107 |
pankso@12312 | 108 post_remove() |
pankso@12312 | 109 { |
pankso@12312 | 110 # Remove WM from SLIM available sessions. |
pankso@12312 | 111 if grep -q $PACKAGE $1/etc/slim.conf; then |
pankso@12312 | 112 sed -i s/,$PACKAGE// $1/etc/slim.conf |
pankso@12312 | 113 fi |
pankso@12312 | 114 } |