wok-next annotate razorqt/receipt @ rev 21078
Update png and Xorg in dependencies.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Dec 22 04:52:35 2018 +0200 (2018-12-22) |
parents | d5aab818505e |
children |
rev | line source |
---|---|
pascal@20051 | 1 # SliTaz package receipt v2. |
pankso@12312 | 2 |
pankso@12312 | 3 PACKAGE="razorqt" |
al@15191 | 4 VERSION="0.5.2" |
pankso@12312 | 5 CATEGORY="x-window" |
al@21020 | 6 SHORT_DESC="Light and fast QT based Desktop Environment" |
al@21020 | 7 MAINTAINER="devel@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@12312 | 12 |
al@15191 | 13 BUILD_DEPENDS="cmake Qt4-dev qmake xorg-dev libmagic-dev upower-dev \ |
pankso@13506 | 14 grep libstatgrab-dev alsa-lib-dev polkit-dev polkit-qt-dev glib-dev \ |
al@19779 | 15 lightdm-qt-dev imagemagick" |
al@21020 | 16 SPLIT="\ |
al@21020 | 17 $PACKAGE-appswitcher $PACKAGE-autosuspend $PACKAGE-dev \ |
al@21020 | 18 $PACKAGE-locale-cs $PACKAGE-locale-da $PACKAGE-locale-de \ |
al@21020 | 19 $PACKAGE-locale-el $PACKAGE-locale-es $PACKAGE-locale-fr \ |
al@21020 | 20 $PACKAGE-locale-hu $PACKAGE-locale-id $PACKAGE-locale-it \ |
al@21020 | 21 $PACKAGE-locale-misc $PACKAGE-locale-pl $PACKAGE-locale-pt \ |
al@21020 | 22 $PACKAGE-locale-ru $PACKAGE-locale-sl $PACKAGE-locale-sv \ |
al@21020 | 23 $PACKAGE-locale-uk $PACKAGE-locale-zh $PACKAGE-policykit-agent \ |
al@21020 | 24 $PACKAGE-power $PACKAGE-runner $PACKAGE-themes" |
pascal@20051 | 25 |
al@20943 | 26 COOKOPTS="!menus" |
pankso@12312 | 27 |
al@21020 | 28 compile_rules() { |
al@21020 | 29 cmake \ |
al@21020 | 30 -DCMAKE_INSTALL_PREFIX=/usr \ |
al@21020 | 31 . && |
al@21020 | 32 make && |
al@21020 | 33 make install |
al@15191 | 34 |
al@15191 | 35 # save space (png -> jpg) |
al@15191 | 36 cd $install/usr/share/razor/themes/light |
al@15191 | 37 convert ./simple_blue_widescreen.png ./simple_blue_widescreen.jpg |
pankso@12312 | 38 } |
pankso@12312 | 39 |
al@21020 | 40 genpkg_rules() { |
pascal@20051 | 41 case $PACKAGE in |
al@21020 | 42 razorqt) |
al@21020 | 43 DEPENDS="libQtDBus libQtGui libmagic libstatgrab \ |
al@21078 | 44 libxcomposite libxcursor libxdamage \ |
pascal@20051 | 45 lightdm-qt" |
al@21020 | 46 SUGGESTED="razorqt-themes razorqt-appswitcher razorqt-power \ |
pascal@20051 | 47 razorqt-runner razorqt-autosuspend" |
pankso@13506 | 48 |
al@21020 | 49 # copy all, then remove unneeded |
al@21020 | 50 cp -a $install/* $fs |
pankso@13506 | 51 |
al@21020 | 52 # Dev-files --> razorqt-dev |
al@21020 | 53 rm -rf $fs/usr/include |
al@21020 | 54 rm -rf $fs/usr/lib/pkgconfig |
pankso@13506 | 55 |
al@21020 | 56 # Language-files --> razorqt-locale-* |
al@21020 | 57 find $fs -name '*.qm' -delete |
pankso@13506 | 58 |
al@21020 | 59 # Appswitcher --> razorqt-appswitcher |
al@21020 | 60 rm -f $fs/usr/bin/razor-appswitcher |
al@21020 | 61 rm -f $fs/etc/xdg/autostart/razor-appswitcher.desktop |
pankso@13506 | 62 |
al@21020 | 63 # Autosuspend --> razorqt-autosuspend |
al@21020 | 64 rm -f $fs/usr/bin/razor-autosuspend |
al@21020 | 65 rm -f $fs/usr/bin/razor-config-autosuspend |
al@21020 | 66 rm -f $fs/etc/xdg/autostart/razor-autosuspend.desktop |
al@21020 | 67 rm -f $fs/usr/share/applications/razor-config-autosuspend.desktop |
pankso@13506 | 68 |
al@21020 | 69 # Policykit-agent --> razorqt-policykit-agent |
al@21020 | 70 rm -f $fs/usr/bin/razor-policykit-agent |
al@21020 | 71 rm -f $fs/etc/xdg/autostart/razor-policykit-agent.desktop |
al@15191 | 72 |
al@21020 | 73 # Power --> razorqt-power |
al@21020 | 74 rm -f $fs/usr/bin/razor-power |
al@21020 | 75 rm -f $fs/usr/share/applications/razor-power.desktop |
pankso@13506 | 76 |
al@21020 | 77 # Runner --> razorqt-runner |
al@21020 | 78 rm -f $fs/usr/bin/razor-runner |
al@21020 | 79 rm -f $fs/etc/xdg/autostart/razor-runner.desktop |
al@15191 | 80 |
al@21020 | 81 # Themes (all but light) --> razorqt-themes |
al@21020 | 82 find $fs/usr/share/razor/themes -maxdepth 1 -mindepth 1 -type d \ |
al@21020 | 83 \( ! -name light \) -exec rm -rf \{\} \; |
al@21020 | 84 rm -f $fs/usr/share/razor/themes/light/simple_blue_widescreen.png |
al@21020 | 85 rm -f $fs/usr/share/razor/themes/light/96640-simple_blue_widescreen.svg |
al@21020 | 86 sed 's|png|jpg|' -i $fs/usr/share/razor/themes/light/wallpaper.cfg |
al@15191 | 87 |
al@21020 | 88 # Remove confupdate (Port desktop.conf syntax from 0.4.x to 0.5.0 format) |
al@21020 | 89 rm -f $fs/usr/bin/razor-confupdate |
al@21020 | 90 rm -rf $fs/usr/lib/razor-confupdate_bin |
al@21020 | 91 rm -rf $fs/usr/share/razor/razor-confupdate |
al@15191 | 92 |
al@21020 | 93 # Remove heavy graphics |
al@21020 | 94 rm -f $fs/usr/share/razor/graphics/rqt* |
al@15191 | 95 |
al@21020 | 96 # Remove file - not use KDM |
al@21020 | 97 rm -rf $fs/usr/share/apps |
pankso@13506 | 98 |
al@21020 | 99 # Remove empty folders |
al@21020 | 100 for dir in $(find $fs/usr/share -type d); do |
al@21020 | 101 rmdir --ignore-fail-on-non-empty $dir |
al@21020 | 102 done |
pascal@20051 | 103 |
al@21020 | 104 # Custom SliTaz integration |
al@21020 | 105 cp -a $stuff/*.conf $fs/etc/razor |
al@21020 | 106 ;; |
al@21020 | 107 *-appswitcher) |
al@21020 | 108 CAT="x-window|apps switcher plugin" |
al@21020 | 109 DEPENDS="razorqt" |
al@21020 | 110 mkdir -p $fs/usr/bin $fs/etc/xdg/autostart |
al@21020 | 111 cp -a $install/usr/bin/razor-appswitcher $fs/usr/bin |
al@21020 | 112 cp -a $install/etc/xdg/autostart/razor-appswitcher.desktop \ |
al@21020 | 113 $fs/etc/xdg/autostart |
al@21020 | 114 ;; |
al@21020 | 115 *-autosuspend) |
al@21020 | 116 CAT="x-window|suspend manage application tool" |
al@21020 | 117 DEPENDS="razorqt" |
al@21020 | 118 mkdir -p \ |
al@21020 | 119 $fs/usr/bin \ |
al@21020 | 120 $fs/etc/xdg/autostart \ |
al@21020 | 121 $fs/usr/share/applications |
al@21020 | 122 cp -a $install/usr/bin/razor-autosuspend $fs/usr/bin |
al@21020 | 123 cp -a $install/usr/bin/razor-config-autosuspend $fs/usr/bin |
al@21020 | 124 cp -a $install/etc/xdg/autostart/razor-autosuspend.desktop \ |
al@21020 | 125 $fs/etc/xdg/autostart |
al@21020 | 126 cp $install/usr/share/applications/razor-config-autosuspend.desktop \ |
al@21020 | 127 $fs/usr/share/applications |
al@21020 | 128 ;; |
al@21020 | 129 *-dev) |
al@21020 | 130 CAT="development|Development files for the QT based Razor desktop" |
al@21020 | 131 DEPENDS="Qt4-dev" |
al@21020 | 132 mkdir -p $fs/usr/lib |
al@21020 | 133 cp -a $install/usr/lib/pkgconfig $fs/usr/lib |
al@21020 | 134 cp -a $install/usr/include $fs/usr |
al@21020 | 135 ;; |
al@21020 | 136 *-locale-misc) |
al@21020 | 137 CAT="localization|Miscelaneous locales for Razor-qt not included in razorqt-locale-*" |
al@21020 | 138 LOCALES="cs da de el es fr hu id it pl pt ru sl sv uk zh" |
pascal@20051 | 139 |
al@21020 | 140 # copy all translations |
al@21020 | 141 cd $install |
al@21020 | 142 qms=$(find . -name "*.qm" | sed 's|^.||') |
al@21020 | 143 for qm in $qms; do |
al@21020 | 144 mkdir -p $(dirname $fs$qm) |
al@21020 | 145 cp -a $install$qm $fs$qm |
pascal@20051 | 146 done |
al@21020 | 147 # remove translations that exists in razorqt-locale-* |
al@21020 | 148 for locale in $LOCALES; do |
al@21020 | 149 cook razorqt-locale-$locale |
al@21020 | 150 for qm in $(cat $WOK/razorqt-locale-$locale/taz/*/files.list); do |
al@21020 | 151 rm -f $fs$qm |
al@21020 | 152 done |
al@21020 | 153 done |
al@21020 | 154 ;; |
al@21020 | 155 *-locale-*) |
al@21020 | 156 LOCALE="${PACKAGE#razorqt-locale-}" |
al@21020 | 157 while read code name; do |
al@21020 | 158 [ $code == $LOCALE ] && break |
al@21020 | 159 done <<EOT |
pascal@20051 | 160 cs Czech |
pascal@20051 | 161 da Danish |
pascal@20051 | 162 de German |
pascal@20051 | 163 el Greek |
pascal@20051 | 164 es Spanish |
pascal@20051 | 165 fr French |
pascal@20051 | 166 hu Hungarian |
pascal@20051 | 167 id Indonesian |
pascal@20051 | 168 it Italian |
pascal@20051 | 169 pl Polish |
pascal@20051 | 170 pt Portuguese |
pascal@20051 | 171 ru Russian |
pascal@20051 | 172 sl Slovenian |
pascal@20051 | 173 sv Swedish |
pascal@20051 | 174 uk Ukrainian |
pascal@20051 | 175 zh Chinese |
pascal@20051 | 176 EOT |
al@21020 | 177 CAT="localization|$name locale" |
al@21020 | 178 cd $install |
al@21020 | 179 qms=$(find . \( -name "*_$LOCALE.qm" \) -o \( -name "*_${LOCALE}_*.qm" \) | sed 's|^.||') |
al@21020 | 180 for qm in $qms; do |
al@21020 | 181 mkdir -p $(dirname $fs$qm) |
al@21020 | 182 cp -a $install$qm $fs$qm |
al@21020 | 183 done |
al@21020 | 184 ;; |
al@21020 | 185 *-policykit-agent) |
al@21020 | 186 CAT="x-window|lightweight PolicyKit agent/user interface" |
al@21020 | 187 DEPENDS="razorqt polkit polkit-qt" |
al@21020 | 188 mkdir -p $fs/usr/bin $fs/etc/xdg/autostart |
al@21020 | 189 cp -a $install/usr/bin/razor-policykit-agent $fs/usr/bin |
al@21020 | 190 cp -a $install/etc/xdg/autostart/razor-policykit-agent.desktop \ |
al@21020 | 191 $fs/etc/xdg/autostart |
al@21020 | 192 ;; |
al@21020 | 193 *-power) |
al@21020 | 194 CAT="x-window|power management component" |
al@21020 | 195 DEPENDS="razorqt upower" |
al@21020 | 196 mkdir -p $fs/usr/bin $fs/usr/share/applications |
al@21020 | 197 cp -a $install/usr/bin/razor-power $fs/usr/bin |
al@21020 | 198 cp $install/usr/share/applications/razor-power.desktop \ |
al@21020 | 199 $fs/usr/share/applications |
al@21020 | 200 ;; |
al@21020 | 201 *-runner) |
al@21020 | 202 CAT="x-window|quick launch and runner application" |
al@21020 | 203 DEPENDS="razorqt" |
al@21020 | 204 mkdir -p $fs/usr/bin $fs/etc/xdg/autostart |
al@21020 | 205 cp -a $install/usr/bin/razor-runner $fs/usr/bin |
al@21020 | 206 cp -a $install/etc/xdg/autostart/razor-runner.desktop \ |
al@21020 | 207 $fs/etc/xdg/autostart |
al@21020 | 208 ;; |
al@21020 | 209 *-themes) |
al@21020 | 210 CAT="x-window|extra themes" |
al@21020 | 211 DEPENDS="razorqt" |
al@21020 | 212 mkdir -p $fs/usr/share/razor |
al@21020 | 213 cp -a $install/usr/share/razor/themes $fs/usr/share/razor |
al@21020 | 214 rm -rf $fs/usr/share/razor/themes/light |
pascal@20051 | 215 |
al@21020 | 216 # remove heavy graphics |
al@21020 | 217 rm -f $fs/usr/share/razor/themes/*/wow5.png |
al@21020 | 218 rm -f $fs/usr/share/razor/themes/*/wow5_12*.jpg |
al@21020 | 219 rm -f $fs/usr/share/razor/themes/*/wow5_16*.jpg |
al@21020 | 220 rm -f $fs/usr/share/razor/themes/*/wow5_19*.jpg |
al@21020 | 221 rm -f $fs/usr/share/razor/themes/*/wow5_20*.jpg |
al@21020 | 222 for theme in a-mego ambiance; do |
al@21020 | 223 cat > $fs/usr/share/razor/themes/$theme/wallpaper.cfg << EOT |
pascal@20051 | 224 wallpapers/size=1 |
pascal@20051 | 225 wallpapers/1/file=wow5_1024x768.jpg |
pascal@20051 | 226 EOT |
al@21020 | 227 done |
al@21020 | 228 ;; |
pascal@20051 | 229 esac |
pankso@12312 | 230 } |
pankso@12312 | 231 |
al@21020 | 232 post_install_razorqt() { |
pascal@18730 | 233 res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//) |
pankso@12312 | 234 # Adding WM to SLIM available sessions. |
pankso@12312 | 235 if ! echo "$res" | grep -q $PACKAGE; then |
pankso@12312 | 236 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
al@21020 | 237 sed -i "s/^sessions.*/sessions $res,$PACKAGE/" "$1/etc/slim.conf" |
pankso@12312 | 238 status |
pankso@12312 | 239 fi |
pascal@18707 | 240 true |
pankso@12312 | 241 } |
pankso@12312 | 242 |
al@21020 | 243 post_remove_razorqt() { |
pankso@12312 | 244 # Remove WM from SLIM available sessions. |
pascal@18730 | 245 if grep -q $PACKAGE "$1/etc/slim.conf"; then |
pascal@18730 | 246 sed -i s/,$PACKAGE// "$1/etc/slim.conf" |
pankso@12312 | 247 fi |
pankso@12312 | 248 } |