wok-current annotate razorqt/receipt @ rev 22708
updated eudev and eudev-dev (1.9 -> 3.2.9)
author | Hans-G?nter Theisgen |
---|---|
date | Tue Jan 21 17:49:56 2020 +0100 (2020-01-21) |
parents | eb4c6cf9f3a5 |
children | 5ea0ce1cecc0 |
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" |
pascal@21231 | 10 WEB_SITE="https://github.com/Razor-qt/razor-qt" |
pascal@21231 | 11 WGET_URL="https://github.com/Razor-qt/razor-qt/archive/$VERSION.tar.gz" |
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 { |
pascal@21377 | 26 sed -i 's|sg_init()|sg_init(1)|' \ |
pascal@21377 | 27 razorqt-panel/plugin-networkmonitor/razornetworkmonitor.cpp \ |
pascal@21377 | 28 razorqt-panel/plugin-cpuload/razorcpuload.cpp |
pascal@21377 | 29 sed -i 's|sg_get_cpu_percents()|sg_get_cpu_percents(NULL)|' \ |
pascal@21377 | 30 razorqt-panel/plugin-cpuload/razorcpuload.cpp |
pascal@21377 | 31 sed -i 's|int \(.*num_network_stats\)|size_t \1|' \ |
pascal@21377 | 32 razorqt-panel/plugin-networkmonitor/razornetworkmonitor.cpp |
pankso@12312 | 33 cmake -DCMAKE_INSTALL_PREFIX=/usr . |
pankso@12312 | 34 make && make install |
al@15191 | 35 |
al@15191 | 36 # save space (png -> jpg) |
al@15191 | 37 cd $install/usr/share/razor/themes/light |
al@15191 | 38 convert ./simple_blue_widescreen.png ./simple_blue_widescreen.jpg |
pankso@12312 | 39 } |
pankso@12312 | 40 |
pankso@12312 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@12312 | 42 genpkg_rules() |
pankso@12312 | 43 { |
al@15191 | 44 # copy all, then remove unneeded |
al@15191 | 45 cp -a $install/* $fs |
pankso@13506 | 46 |
al@15191 | 47 # Dev-files --> razorqt-dev |
al@15191 | 48 rm -rf $fs/usr/include |
al@15191 | 49 rm -rf $fs/usr/lib/pkgconfig |
pankso@13506 | 50 |
al@15191 | 51 # Language-files --> razorqt-locale-* |
al@15191 | 52 find $fs -name '*.qm' -delete |
pankso@13506 | 53 |
pankso@12312 | 54 # Appswitcher --> razorqt-appswitcher |
pankso@12312 | 55 rm -f $fs/usr/bin/razor-appswitcher |
pankso@13506 | 56 rm -f $fs/etc/xdg/autostart/razor-appswitcher.desktop |
pankso@13506 | 57 |
pankso@13506 | 58 # Autosuspend --> razorqt-autosuspend |
pankso@13506 | 59 rm -f $fs/usr/bin/razor-autosuspend |
pankso@13506 | 60 rm -f $fs/usr/bin/razor-config-autosuspend |
pankso@13506 | 61 rm -f $fs/etc/xdg/autostart/razor-autosuspend.desktop |
pankso@13506 | 62 rm -f $fs/usr/share/applications/razor-config-autosuspend.desktop |
pankso@13506 | 63 |
pankso@13506 | 64 # Policykit-agent --> razorqt-policykit-agent |
pankso@13506 | 65 rm -f $fs/usr/bin/razor-policykit-agent |
pankso@13506 | 66 rm -f $fs/etc/xdg/autostart/razor-policykit-agent.desktop |
pankso@13506 | 67 |
al@15191 | 68 # Power --> razorqt-power |
al@15191 | 69 rm -f $fs/usr/bin/razor-power |
al@15191 | 70 rm -f $fs/usr/share/applications/razor-power.desktop |
al@15191 | 71 |
pankso@13506 | 72 # Runner --> razorqt-runner |
pankso@13506 | 73 rm -f $fs/usr/bin/razor-runner |
pankso@13506 | 74 rm -f $fs/etc/xdg/autostart/razor-runner.desktop |
pankso@13506 | 75 |
al@15191 | 76 # Themes (all but light) --> razorqt-themes |
al@15191 | 77 find $fs/usr/share/razor/themes -maxdepth 1 -mindepth 1 -type d \ |
al@15191 | 78 \( ! -name light \) -exec rm -rf \{\} \; |
al@15191 | 79 rm -f $fs/usr/share/razor/themes/light/simple_blue_widescreen.png |
al@15191 | 80 rm -f $fs/usr/share/razor/themes/light/96640-simple_blue_widescreen.svg |
al@15191 | 81 sed 's|png|jpg|' -i $fs/usr/share/razor/themes/light/wallpaper.cfg |
al@15191 | 82 |
al@15191 | 83 # Remove confupdate (Port desktop.conf syntax from 0.4.x to 0.5.0 format) |
al@15191 | 84 rm -f $fs/usr/bin/razor-confupdate |
al@15191 | 85 rm -rf $fs/usr/lib/razor-confupdate_bin |
al@15191 | 86 rm -rf $fs/usr/share/razor/razor-confupdate |
al@15191 | 87 |
al@15191 | 88 # Remove heavy graphics |
al@15191 | 89 rm -f $fs/usr/share/razor/graphics/rqt* |
al@15191 | 90 |
al@15191 | 91 # Remove file - not use KDM |
al@15191 | 92 rm -rf $fs/usr/share/apps |
al@15191 | 93 |
al@15191 | 94 # Remove empty folders |
al@15191 | 95 for dir in $(find $fs/usr/share -type d); do |
al@15191 | 96 rmdir --ignore-fail-on-non-empty $dir |
al@15191 | 97 done |
pankso@13506 | 98 |
pankso@12312 | 99 # Custom SliTaz integration |
pascal@19583 | 100 cp -a $stuff/*.conf $fs/etc/xdg/razor |
pankso@12312 | 101 } |
pankso@12312 | 102 |
pankso@12312 | 103 post_install() |
pankso@12312 | 104 { |
pascal@18730 | 105 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) |
pankso@12312 | 106 # Adding WM to SLIM available sessions. |
pankso@12312 | 107 if ! echo "$res" | grep -q $PACKAGE; then |
pascal@20319 | 108 echo |
pankso@12312 | 109 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
pascal@18730 | 110 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf" |
pankso@12312 | 111 status |
pankso@12312 | 112 fi |
pascal@18707 | 113 true |
pankso@12312 | 114 } |
pankso@12312 | 115 |
pankso@12312 | 116 post_remove() |
pankso@12312 | 117 { |
pankso@12312 | 118 # Remove WM from SLIM available sessions. |
pascal@18730 | 119 if grep -q $PACKAGE "$1/etc/slim.conf"; then |
pascal@18730 | 120 sed -i s/,$PACKAGE// "$1/etc/slim.conf" |
pankso@12312 | 121 fi |
pankso@12312 | 122 } |