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