wok annotate razorqt/receipt @ rev 21314

5) lxpanel: up (0.10.0)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Apr 18 17:46:06 2019 +0300 (2019-04-18)
parents 970c5ec9a60a
children c5bb6b8ba595
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 {
pankso@12312 26 cmake -DCMAKE_INSTALL_PREFIX=/usr .
pankso@12312 27 make && make install
al@15191 28
al@15191 29 # save space (png -> jpg)
al@15191 30 cd $install/usr/share/razor/themes/light
al@15191 31 convert ./simple_blue_widescreen.png ./simple_blue_widescreen.jpg
pankso@12312 32 }
pankso@12312 33
pankso@12312 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@12312 35 genpkg_rules()
pankso@12312 36 {
al@15191 37 # copy all, then remove unneeded
al@15191 38 cp -a $install/* $fs
pankso@13506 39
al@15191 40 # Dev-files --> razorqt-dev
al@15191 41 rm -rf $fs/usr/include
al@15191 42 rm -rf $fs/usr/lib/pkgconfig
pankso@13506 43
al@15191 44 # Language-files --> razorqt-locale-*
al@15191 45 find $fs -name '*.qm' -delete
pankso@13506 46
pankso@12312 47 # Appswitcher --> razorqt-appswitcher
pankso@12312 48 rm -f $fs/usr/bin/razor-appswitcher
pankso@13506 49 rm -f $fs/etc/xdg/autostart/razor-appswitcher.desktop
pankso@13506 50
pankso@13506 51 # Autosuspend --> razorqt-autosuspend
pankso@13506 52 rm -f $fs/usr/bin/razor-autosuspend
pankso@13506 53 rm -f $fs/usr/bin/razor-config-autosuspend
pankso@13506 54 rm -f $fs/etc/xdg/autostart/razor-autosuspend.desktop
pankso@13506 55 rm -f $fs/usr/share/applications/razor-config-autosuspend.desktop
pankso@13506 56
pankso@13506 57 # Policykit-agent --> razorqt-policykit-agent
pankso@13506 58 rm -f $fs/usr/bin/razor-policykit-agent
pankso@13506 59 rm -f $fs/etc/xdg/autostart/razor-policykit-agent.desktop
pankso@13506 60
al@15191 61 # Power --> razorqt-power
al@15191 62 rm -f $fs/usr/bin/razor-power
al@15191 63 rm -f $fs/usr/share/applications/razor-power.desktop
al@15191 64
pankso@13506 65 # Runner --> razorqt-runner
pankso@13506 66 rm -f $fs/usr/bin/razor-runner
pankso@13506 67 rm -f $fs/etc/xdg/autostart/razor-runner.desktop
pankso@13506 68
al@15191 69 # Themes (all but light) --> razorqt-themes
al@15191 70 find $fs/usr/share/razor/themes -maxdepth 1 -mindepth 1 -type d \
al@15191 71 \( ! -name light \) -exec rm -rf \{\} \;
al@15191 72 rm -f $fs/usr/share/razor/themes/light/simple_blue_widescreen.png
al@15191 73 rm -f $fs/usr/share/razor/themes/light/96640-simple_blue_widescreen.svg
al@15191 74 sed 's|png|jpg|' -i $fs/usr/share/razor/themes/light/wallpaper.cfg
al@15191 75
al@15191 76 # Remove confupdate (Port desktop.conf syntax from 0.4.x to 0.5.0 format)
al@15191 77 rm -f $fs/usr/bin/razor-confupdate
al@15191 78 rm -rf $fs/usr/lib/razor-confupdate_bin
al@15191 79 rm -rf $fs/usr/share/razor/razor-confupdate
al@15191 80
al@15191 81 # Remove heavy graphics
al@15191 82 rm -f $fs/usr/share/razor/graphics/rqt*
al@15191 83
al@15191 84 # Remove file - not use KDM
al@15191 85 rm -rf $fs/usr/share/apps
al@15191 86
al@15191 87 # Remove empty folders
al@15191 88 for dir in $(find $fs/usr/share -type d); do
al@15191 89 rmdir --ignore-fail-on-non-empty $dir
al@15191 90 done
pankso@13506 91
pankso@12312 92 # Custom SliTaz integration
pascal@19583 93 cp -a $stuff/*.conf $fs/etc/xdg/razor
pankso@12312 94 }
pankso@12312 95
pankso@12312 96 post_install()
pankso@12312 97 {
pascal@18730 98 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
pankso@12312 99 # Adding WM to SLIM available sessions.
pankso@12312 100 if ! echo "$res" | grep -q $PACKAGE; then
pascal@20319 101 echo
pankso@12312 102 echo -n "Adding $PACKAGE to /etc/slim.conf..."
pascal@18730 103 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" "$1/etc/slim.conf"
pankso@12312 104 status
pankso@12312 105 fi
pascal@18707 106 true
pankso@12312 107 }
pankso@12312 108
pankso@12312 109 post_remove()
pankso@12312 110 {
pankso@12312 111 # Remove WM from SLIM available sessions.
pascal@18730 112 if grep -q $PACKAGE "$1/etc/slim.conf"; then
pascal@18730 113 sed -i s/,$PACKAGE// "$1/etc/slim.conf"
pankso@12312 114 fi
pankso@12312 115 }