wok-next diff razorqt/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 6befec62b46c
children 5669e8b3be70
line diff
     1.1 --- a/razorqt/receipt	Thu Aug 30 10:49:57 2018 +0300
     1.2 +++ b/razorqt/receipt	Fri Nov 02 14:15:08 2018 +0200
     1.3 @@ -3,8 +3,8 @@
     1.4  PACKAGE="razorqt"
     1.5  VERSION="0.5.2"
     1.6  CATEGORY="x-window"
     1.7 -SHORT_DESC="Light and fast QT based Desktop Environment."
     1.8 -MAINTAINER="pankso@slitaz.org"
     1.9 +SHORT_DESC="Light and fast QT based Desktop Environment"
    1.10 +MAINTAINER="devel@slitaz.org"
    1.11  LICENSE="GPL2 LGPL2.1"
    1.12  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.13  WEB_SITE="http://razor-qt.org/"
    1.14 @@ -13,148 +13,150 @@
    1.15  BUILD_DEPENDS="cmake Qt4-dev qmake xorg-dev libmagic-dev upower-dev \
    1.16  grep libstatgrab-dev alsa-lib-dev polkit-dev polkit-qt-dev glib-dev \
    1.17  lightdm-qt-dev imagemagick"
    1.18 -SPLIT="razorqt-appswitcher razorqt-autosuspend razorqt-dev razorqt-locale-cs \
    1.19 -razorqt-locale-da razorqt-locale-de razorqt-locale-el razorqt-locale-es \
    1.20 -razorqt-locale-fr razorqt-locale-hu razorqt-locale-id razorqt-locale-it \
    1.21 -razorqt-locale-misc razorqt-locale-pl razorqt-locale-pt razorqt-locale-ru \
    1.22 -razorqt-locale-sl razorqt-locale-sv razorqt-locale-uk razorqt-locale-zh \
    1.23 -razorqt-policykit-agent razorqt-power razorqt-runner razorqt-themes"
    1.24 +SPLIT="\
    1.25 +$PACKAGE-appswitcher $PACKAGE-autosuspend $PACKAGE-dev \
    1.26 +$PACKAGE-locale-cs   $PACKAGE-locale-da   $PACKAGE-locale-de \
    1.27 +$PACKAGE-locale-el   $PACKAGE-locale-es   $PACKAGE-locale-fr \
    1.28 +$PACKAGE-locale-hu   $PACKAGE-locale-id   $PACKAGE-locale-it \
    1.29 +$PACKAGE-locale-misc $PACKAGE-locale-pl   $PACKAGE-locale-pt \
    1.30 +$PACKAGE-locale-ru   $PACKAGE-locale-sl   $PACKAGE-locale-sv \
    1.31 +$PACKAGE-locale-uk   $PACKAGE-locale-zh   $PACKAGE-policykit-agent \
    1.32 +$PACKAGE-power       $PACKAGE-runner      $PACKAGE-themes"
    1.33  
    1.34  COOKOPTS="!menus"
    1.35  
    1.36 -# Rules to configure and make the package.
    1.37 -compile_rules()
    1.38 -{
    1.39 -	cmake -DCMAKE_INSTALL_PREFIX=/usr .
    1.40 -	make && make install
    1.41 +compile_rules() {
    1.42 +	cmake \
    1.43 +		-DCMAKE_INSTALL_PREFIX=/usr \
    1.44 +		. &&
    1.45 +	make &&
    1.46 +	make install
    1.47  
    1.48  	# save space (png -> jpg)
    1.49  	cd $install/usr/share/razor/themes/light
    1.50  	convert ./simple_blue_widescreen.png ./simple_blue_widescreen.jpg
    1.51  }
    1.52  
    1.53 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.54 -genpkg_rules()
    1.55 -{
    1.56 +genpkg_rules() {
    1.57  	case $PACKAGE in
    1.58 -	razorqt)
    1.59 -		DEPENDS="libQtDBus libQtGui libmagic libstatgrab \
    1.60 +		razorqt)
    1.61 +			DEPENDS="libQtDBus libQtGui libmagic libstatgrab \
    1.62  			xorg-libXcomposite xorg-libXcursor xorg-libXdamage \
    1.63  			lightdm-qt"
    1.64 -		SUGGESTED="razorqt-themes razorqt-appswitcher razorqt-power \
    1.65 +			SUGGESTED="razorqt-themes razorqt-appswitcher razorqt-power \
    1.66  			razorqt-runner razorqt-autosuspend"
    1.67  
    1.68 -		# copy all, then remove unneeded
    1.69 -		cp -a $install/* $fs
    1.70 +			# copy all, then remove unneeded
    1.71 +			cp -a $install/* $fs
    1.72  
    1.73 -		# Dev-files --> razorqt-dev
    1.74 -		rm -rf $fs/usr/include
    1.75 -		rm -rf $fs/usr/lib/pkgconfig
    1.76 +			# Dev-files --> razorqt-dev
    1.77 +			rm -rf $fs/usr/include
    1.78 +			rm -rf $fs/usr/lib/pkgconfig
    1.79  
    1.80 -		# Language-files --> razorqt-locale-*
    1.81 -		find $fs -name '*.qm' -delete
    1.82 +			# Language-files --> razorqt-locale-*
    1.83 +			find $fs -name '*.qm' -delete
    1.84  
    1.85 -		# Appswitcher --> razorqt-appswitcher
    1.86 -		rm -f $fs/usr/bin/razor-appswitcher
    1.87 -		rm -f $fs/etc/xdg/autostart/razor-appswitcher.desktop
    1.88 +			# Appswitcher --> razorqt-appswitcher
    1.89 +			rm -f $fs/usr/bin/razor-appswitcher
    1.90 +			rm -f $fs/etc/xdg/autostart/razor-appswitcher.desktop
    1.91  
    1.92 -		# Autosuspend --> razorqt-autosuspend
    1.93 -		rm -f $fs/usr/bin/razor-autosuspend
    1.94 -		rm -f $fs/usr/bin/razor-config-autosuspend
    1.95 -		rm -f $fs/etc/xdg/autostart/razor-autosuspend.desktop
    1.96 -		rm -f $fs/usr/share/applications/razor-config-autosuspend.desktop
    1.97 +			# Autosuspend --> razorqt-autosuspend
    1.98 +			rm -f $fs/usr/bin/razor-autosuspend
    1.99 +			rm -f $fs/usr/bin/razor-config-autosuspend
   1.100 +			rm -f $fs/etc/xdg/autostart/razor-autosuspend.desktop
   1.101 +			rm -f $fs/usr/share/applications/razor-config-autosuspend.desktop
   1.102  
   1.103 -		# Policykit-agent --> razorqt-policykit-agent
   1.104 -		rm -f $fs/usr/bin/razor-policykit-agent
   1.105 -		rm -f $fs/etc/xdg/autostart/razor-policykit-agent.desktop
   1.106 +			# Policykit-agent --> razorqt-policykit-agent
   1.107 +			rm -f $fs/usr/bin/razor-policykit-agent
   1.108 +			rm -f $fs/etc/xdg/autostart/razor-policykit-agent.desktop
   1.109  
   1.110 -		# Power --> razorqt-power
   1.111 -		rm -f $fs/usr/bin/razor-power
   1.112 -		rm -f $fs/usr/share/applications/razor-power.desktop
   1.113 +			# Power --> razorqt-power
   1.114 +			rm -f $fs/usr/bin/razor-power
   1.115 +			rm -f $fs/usr/share/applications/razor-power.desktop
   1.116  
   1.117 -		# Runner --> razorqt-runner
   1.118 -		rm -f $fs/usr/bin/razor-runner
   1.119 -		rm -f $fs/etc/xdg/autostart/razor-runner.desktop
   1.120 +			# Runner --> razorqt-runner
   1.121 +			rm -f $fs/usr/bin/razor-runner
   1.122 +			rm -f $fs/etc/xdg/autostart/razor-runner.desktop
   1.123  
   1.124 -		# Themes (all but light) --> razorqt-themes
   1.125 -		find $fs/usr/share/razor/themes -maxdepth 1 -mindepth 1 -type d \
   1.126 -			\( ! -name light \) -exec rm -rf \{\} \;
   1.127 -		rm -f $fs/usr/share/razor/themes/light/simple_blue_widescreen.png
   1.128 -		rm -f $fs/usr/share/razor/themes/light/96640-simple_blue_widescreen.svg
   1.129 -		sed 's|png|jpg|' -i $fs/usr/share/razor/themes/light/wallpaper.cfg
   1.130 +			# Themes (all but light) --> razorqt-themes
   1.131 +			find $fs/usr/share/razor/themes -maxdepth 1 -mindepth 1 -type d \
   1.132 +				\( ! -name light \) -exec rm -rf \{\} \;
   1.133 +			rm -f $fs/usr/share/razor/themes/light/simple_blue_widescreen.png
   1.134 +			rm -f $fs/usr/share/razor/themes/light/96640-simple_blue_widescreen.svg
   1.135 +			sed 's|png|jpg|' -i $fs/usr/share/razor/themes/light/wallpaper.cfg
   1.136  
   1.137 -		# Remove confupdate (Port desktop.conf syntax from 0.4.x to 0.5.0 format)
   1.138 -		rm -f $fs/usr/bin/razor-confupdate
   1.139 -		rm -rf $fs/usr/lib/razor-confupdate_bin
   1.140 -		rm -rf $fs/usr/share/razor/razor-confupdate
   1.141 +			# Remove confupdate (Port desktop.conf syntax from 0.4.x to 0.5.0 format)
   1.142 +			rm -f $fs/usr/bin/razor-confupdate
   1.143 +			rm -rf $fs/usr/lib/razor-confupdate_bin
   1.144 +			rm -rf $fs/usr/share/razor/razor-confupdate
   1.145  
   1.146 -		# Remove heavy graphics
   1.147 -		rm -f $fs/usr/share/razor/graphics/rqt*
   1.148 +			# Remove heavy graphics
   1.149 +			rm -f $fs/usr/share/razor/graphics/rqt*
   1.150  
   1.151 -		# Remove file - not use KDM
   1.152 -		rm -rf $fs/usr/share/apps
   1.153 +			# Remove file - not use KDM
   1.154 +			rm -rf $fs/usr/share/apps
   1.155  
   1.156 -		# Remove empty folders
   1.157 -		for dir in $(find $fs/usr/share -type d); do
   1.158 -			rmdir --ignore-fail-on-non-empty $dir
   1.159 -		done
   1.160 +			# Remove empty folders
   1.161 +			for dir in $(find $fs/usr/share -type d); do
   1.162 +				rmdir --ignore-fail-on-non-empty $dir
   1.163 +			done
   1.164  
   1.165 -		# Custom SliTaz integration
   1.166 -		cp -a $stuff/*.conf $fs/etc/razor
   1.167 -		;;
   1.168 -	razorqt-appswitcher)
   1.169 -		CAT="x-window|Razor-qt Apps switcher plugin."
   1.170 -		DEPENDS="razorqt"
   1.171 -		mkdir -p $fs/usr/bin $fs/etc/xdg/autostart
   1.172 -		cp -a $install/usr/bin/razor-appswitcher $fs/usr/bin
   1.173 -		cp -a $install/etc/xdg/autostart/razor-appswitcher.desktop \
   1.174 -			$fs/etc/xdg/autostart
   1.175 -		;;
   1.176 -	razorqt-autosuspend)
   1.177 -		CAT="x-window|Razor-qt suspend manage application tool."
   1.178 -		DEPENDS="razorqt"
   1.179 -		mkdir -p \
   1.180 -			$fs/usr/bin \
   1.181 -			$fs/etc/xdg/autostart \
   1.182 -			$fs/usr/share/applications
   1.183 -		cp -a $install/usr/bin/razor-autosuspend $fs/usr/bin
   1.184 -		cp -a $install/usr/bin/razor-config-autosuspend $fs/usr/bin
   1.185 -		cp -a $install/etc/xdg/autostart/razor-autosuspend.desktop \
   1.186 -			$fs/etc/xdg/autostart
   1.187 -		cp $install/usr/share/applications/razor-config-autosuspend.desktop \
   1.188 -			$fs/usr/share/applications
   1.189 -		;;
   1.190 -	razorqt-dev)
   1.191 -		CAT="development|Development files for the QT based Razor desktop"
   1.192 -		DEPENDS="Qt4-dev"
   1.193 -		mkdir -p $fs/usr/lib
   1.194 -		cp -a $install/usr/lib/pkgconfig $fs/usr/lib
   1.195 -		cp -a $install/usr/include $fs/usr
   1.196 -		;;
   1.197 -	razorqt-locale-misc)
   1.198 -		CAT="localization|Miscelaneous locales for Razor-qt not included in razorqt-locale-*"
   1.199 -		LOCALES="cs da de el es fr hu id it pl pt ru sl sv uk zh"
   1.200 +			# Custom SliTaz integration
   1.201 +			cp -a $stuff/*.conf $fs/etc/razor
   1.202 +			;;
   1.203 +		*-appswitcher)
   1.204 +			CAT="x-window|apps switcher plugin"
   1.205 +			DEPENDS="razorqt"
   1.206 +			mkdir -p $fs/usr/bin $fs/etc/xdg/autostart
   1.207 +			cp -a $install/usr/bin/razor-appswitcher $fs/usr/bin
   1.208 +			cp -a $install/etc/xdg/autostart/razor-appswitcher.desktop \
   1.209 +				$fs/etc/xdg/autostart
   1.210 +			;;
   1.211 +		*-autosuspend)
   1.212 +			CAT="x-window|suspend manage application tool"
   1.213 +			DEPENDS="razorqt"
   1.214 +			mkdir -p \
   1.215 +				$fs/usr/bin \
   1.216 +				$fs/etc/xdg/autostart \
   1.217 +				$fs/usr/share/applications
   1.218 +			cp -a $install/usr/bin/razor-autosuspend $fs/usr/bin
   1.219 +			cp -a $install/usr/bin/razor-config-autosuspend $fs/usr/bin
   1.220 +			cp -a $install/etc/xdg/autostart/razor-autosuspend.desktop \
   1.221 +				$fs/etc/xdg/autostart
   1.222 +			cp $install/usr/share/applications/razor-config-autosuspend.desktop \
   1.223 +				$fs/usr/share/applications
   1.224 +			;;
   1.225 +		*-dev)
   1.226 +			CAT="development|Development files for the QT based Razor desktop"
   1.227 +			DEPENDS="Qt4-dev"
   1.228 +			mkdir -p $fs/usr/lib
   1.229 +			cp -a $install/usr/lib/pkgconfig $fs/usr/lib
   1.230 +			cp -a $install/usr/include $fs/usr
   1.231 +			;;
   1.232 +		*-locale-misc)
   1.233 +			CAT="localization|Miscelaneous locales for Razor-qt not included in razorqt-locale-*"
   1.234 +			LOCALES="cs da de el es fr hu id it pl pt ru sl sv uk zh"
   1.235  
   1.236 -		# copy all translations
   1.237 -		cd $install
   1.238 -		qms=$(find . -name "*.qm" | sed 's|^.||')
   1.239 -		for qm in $qms; do
   1.240 -			mkdir -p $(dirname $fs$qm)
   1.241 -			cp -a $install$qm $fs$qm
   1.242 -		done
   1.243 -		# remove translations that exists in razorqt-locale-*
   1.244 -		for locale in $LOCALES; do
   1.245 -			cook razorqt-locale-$locale
   1.246 -			for qm in $(cat $WOK/razorqt-locale-$locale/taz/*/files.list); do
   1.247 -				rm -f $fs$qm
   1.248 +			# copy all translations
   1.249 +			cd $install
   1.250 +			qms=$(find . -name "*.qm" | sed 's|^.||')
   1.251 +			for qm in $qms; do
   1.252 +				mkdir -p $(dirname $fs$qm)
   1.253 +				cp -a $install$qm $fs$qm
   1.254  			done
   1.255 -		done
   1.256 -		;;
   1.257 -	razorqt-locale-*)
   1.258 -		LOCALE="${PACKAGE#razorqt-locale-}"
   1.259 -		while read code name; do
   1.260 -			[ $code == $LOCALE ] && break
   1.261 -		done <<EOT
   1.262 +			# remove translations that exists in razorqt-locale-*
   1.263 +			for locale in $LOCALES; do
   1.264 +				cook razorqt-locale-$locale
   1.265 +				for qm in $(cat $WOK/razorqt-locale-$locale/taz/*/files.list); do
   1.266 +					rm -f $fs$qm
   1.267 +				done
   1.268 +			done
   1.269 +			;;
   1.270 +		*-locale-*)
   1.271 +			LOCALE="${PACKAGE#razorqt-locale-}"
   1.272 +			while read code name; do
   1.273 +				[ $code == $LOCALE ] && break
   1.274 +			done <<EOT
   1.275  cs	Czech
   1.276  da	Danish
   1.277  de	German
   1.278 @@ -172,75 +174,73 @@
   1.279  uk	Ukrainian
   1.280  zh	Chinese
   1.281  EOT
   1.282 -		CAT="localization|$name locale for Razor-qt"
   1.283 -		cd $install
   1.284 -		qms=$(find . \( -name "*_$LOCALE.qm" \) -o \( -name "*_${LOCALE}_*.qm" \) | sed 's|^.||')
   1.285 -		for qm in $qms; do
   1.286 -			mkdir -p $(dirname $fs$qm)
   1.287 -			cp -a $install$qm $fs$qm
   1.288 -		done
   1.289 -		;;
   1.290 -	razorqt-policykit-agent)
   1.291 -		CAT="x-window|Razor-qt lightweight PolicyKit agent/user interface."
   1.292 -		DEPENDS="razorqt polkit polkit-qt"
   1.293 -		mkdir -p $fs/usr/bin $fs/etc/xdg/autostart
   1.294 -		cp -a $install/usr/bin/razor-policykit-agent $fs/usr/bin
   1.295 -		cp -a $install/etc/xdg/autostart/razor-policykit-agent.desktop \
   1.296 -			$fs/etc/xdg/autostart
   1.297 -		;;
   1.298 -	razorqt-power)
   1.299 -		CAT="x-window|Razor-qt power management component."
   1.300 -		DEPENDS="razorqt upower"
   1.301 -		mkdir -p $fs/usr/bin $fs/usr/share/applications
   1.302 -		cp -a $install/usr/bin/razor-power $fs/usr/bin
   1.303 -		cp $install/usr/share/applications/razor-power.desktop \
   1.304 -			$fs/usr/share/applications
   1.305 -		;;
   1.306 -	razorqt-runner)
   1.307 -		CAT="x-window|Razor-qt quick launch and runner application."
   1.308 -		DEPENDS="razorqt"
   1.309 -		mkdir -p $fs/usr/bin $fs/etc/xdg/autostart
   1.310 -		cp -a $install/usr/bin/razor-runner $fs/usr/bin
   1.311 -		cp -a $install/etc/xdg/autostart/razor-runner.desktop \
   1.312 -			$fs/etc/xdg/autostart
   1.313 -		;;
   1.314 -	razorqt-themes)
   1.315 -		CAT="x-window|Extra themes for Razor-qt desktop"
   1.316 -		DEPENDS="razorqt"
   1.317 -		mkdir -p $fs/usr/share/razor
   1.318 -		cp -a $install/usr/share/razor/themes $fs/usr/share/razor
   1.319 -		rm -rf $fs/usr/share/razor/themes/light
   1.320 +			CAT="localization|$name locale"
   1.321 +			cd $install
   1.322 +			qms=$(find . \( -name "*_$LOCALE.qm" \) -o \( -name "*_${LOCALE}_*.qm" \) | sed 's|^.||')
   1.323 +			for qm in $qms; do
   1.324 +				mkdir -p $(dirname $fs$qm)
   1.325 +				cp -a $install$qm $fs$qm
   1.326 +			done
   1.327 +			;;
   1.328 +		*-policykit-agent)
   1.329 +			CAT="x-window|lightweight PolicyKit agent/user interface"
   1.330 +			DEPENDS="razorqt polkit polkit-qt"
   1.331 +			mkdir -p $fs/usr/bin $fs/etc/xdg/autostart
   1.332 +			cp -a $install/usr/bin/razor-policykit-agent $fs/usr/bin
   1.333 +			cp -a $install/etc/xdg/autostart/razor-policykit-agent.desktop \
   1.334 +				$fs/etc/xdg/autostart
   1.335 +			;;
   1.336 +		*-power)
   1.337 +		CAT="x-window|power management component"
   1.338 +			DEPENDS="razorqt upower"
   1.339 +			mkdir -p $fs/usr/bin $fs/usr/share/applications
   1.340 +			cp -a $install/usr/bin/razor-power $fs/usr/bin
   1.341 +			cp $install/usr/share/applications/razor-power.desktop \
   1.342 +				$fs/usr/share/applications
   1.343 +			;;
   1.344 +		*-runner)
   1.345 +			CAT="x-window|quick launch and runner application"
   1.346 +			DEPENDS="razorqt"
   1.347 +			mkdir -p $fs/usr/bin $fs/etc/xdg/autostart
   1.348 +			cp -a $install/usr/bin/razor-runner $fs/usr/bin
   1.349 +			cp -a $install/etc/xdg/autostart/razor-runner.desktop \
   1.350 +				$fs/etc/xdg/autostart
   1.351 +			;;
   1.352 +		*-themes)
   1.353 +			CAT="x-window|extra themes"
   1.354 +			DEPENDS="razorqt"
   1.355 +			mkdir -p $fs/usr/share/razor
   1.356 +			cp -a $install/usr/share/razor/themes $fs/usr/share/razor
   1.357 +			rm -rf $fs/usr/share/razor/themes/light
   1.358  
   1.359 -		# remove heavy graphics
   1.360 -		rm -f $fs/usr/share/razor/themes/*/wow5.png
   1.361 -		rm -f $fs/usr/share/razor/themes/*/wow5_12*.jpg
   1.362 -		rm -f $fs/usr/share/razor/themes/*/wow5_16*.jpg
   1.363 -		rm -f $fs/usr/share/razor/themes/*/wow5_19*.jpg
   1.364 -		rm -f $fs/usr/share/razor/themes/*/wow5_20*.jpg
   1.365 -		for theme in a-mego ambiance; do
   1.366 -			cat > $fs/usr/share/razor/themes/$theme/wallpaper.cfg << EOT
   1.367 +			# remove heavy graphics
   1.368 +			rm -f $fs/usr/share/razor/themes/*/wow5.png
   1.369 +			rm -f $fs/usr/share/razor/themes/*/wow5_12*.jpg
   1.370 +			rm -f $fs/usr/share/razor/themes/*/wow5_16*.jpg
   1.371 +			rm -f $fs/usr/share/razor/themes/*/wow5_19*.jpg
   1.372 +			rm -f $fs/usr/share/razor/themes/*/wow5_20*.jpg
   1.373 +			for theme in a-mego ambiance; do
   1.374 +				cat > $fs/usr/share/razor/themes/$theme/wallpaper.cfg << EOT
   1.375  wallpapers/size=1
   1.376  wallpapers/1/file=wow5_1024x768.jpg
   1.377  EOT
   1.378 -		done
   1.379 -		;;
   1.380 +			done
   1.381 +			;;
   1.382  	esac
   1.383  }
   1.384  
   1.385 -post_install_razorqt()
   1.386 -{
   1.387 +post_install_razorqt() {
   1.388  	res=$(cat "$1/etc/slim.conf" | grep ^session | sed s/"sessions. *"//)
   1.389  	# Adding WM to SLIM available sessions.
   1.390  	if ! echo "$res" | grep -q $PACKAGE; then
   1.391  		echo -n "Adding $PACKAGE to /etc/slim.conf..."
   1.392 -		sed -i "s/^sessions.*/sessions            ${res},$PACKAGE/" "$1/etc/slim.conf"
   1.393 +		sed -i "s/^sessions.*/sessions            $res,$PACKAGE/" "$1/etc/slim.conf"
   1.394  		status
   1.395  	fi
   1.396  	true
   1.397  }
   1.398  
   1.399 -post_remove_razorqt()
   1.400 -{
   1.401 +post_remove_razorqt() {
   1.402  	# Remove WM from SLIM available sessions.
   1.403  	if grep -q $PACKAGE "$1/etc/slim.conf"; then
   1.404  		sed -i s/,$PACKAGE// "$1/etc/slim.conf"