wok annotate razorqt/receipt @ rev 21017
updated gummi again (0.6.1 -> 0.6.6)
author | Hans-G?nter Theisgen |
---|---|
date | Sun Mar 10 08:29:08 2019 +0100 (2019-03-10) |
parents | 023f0e633825 |
children | eb4c6cf9f3a5 |
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 |
pascal@19583 | 94 cp -a $stuff/*.conf $fs/etc/xdg/razor |
pankso@12312 | 95 } |
pankso@12312 | 96 |
pankso@12312 | 97 post_install() |
pankso@12312 | 98 { |
pascal@18730 | 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 |
pascal@20319 | 102 echo |
pankso@12312 | 103 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
pascal@18730 | 104 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf" |
pankso@12312 | 105 status |
pankso@12312 | 106 fi |
pascal@18707 | 107 true |
pankso@12312 | 108 } |
pankso@12312 | 109 |
pankso@12312 | 110 post_remove() |
pankso@12312 | 111 { |
pankso@12312 | 112 # Remove WM from SLIM available sessions. |
pascal@18730 | 113 if grep -q $PACKAGE "$1/etc/slim.conf"; then |
pascal@18730 | 114 sed -i s/,$PACKAGE// "$1/etc/slim.conf" |
pankso@12312 | 115 fi |
pankso@12312 | 116 } |