wok view compiz/receipt @ rev 19217

Up compiz* (0.8.12)
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Fri Jun 17 15:09:10 2016 +0300 (2016-06-17)
parents 5d53e8ccbc8d
children 4b74c54bbbf2
line source
1 # SliTaz package receipt.
3 PACKAGE="compiz"
4 VERSION="0.8.12"
5 CATEGORY="meta"
6 SHORT_DESC="Compiz 3D effect support on SliTaz."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT GPL LGPL"
9 WEB_SITE="http://www.compiz.org/"
10 TAGS="window-manager"
12 DEPENDS="emerald compiz-core compiz-plugins-main compiz-libcompizconfig \
13 slitaz-configs"
14 BUILD_DEPENDS=""
15 SUGGESTED="compiz-ccsm compiz-plugins-extra emerald-themes"
17 # Rules to gen a SliTaz package suitable for Tazpkg.
18 genpkg_rules()
19 {
20 mkdir -p $fs/usr/bin
21 cp -r $stuff/xsessions $fs/usr/share
22 install -m 0777 $stuff/compiz-session $fs/usr/bin
23 install -m 0777 $stuff/compiz-startwm $fs/usr/bin
24 chown -R 0.0 $fs
25 }
27 post_install()
28 {
29 res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
30 # Adding WM to SLIM available sessions.
31 if ! echo "$res" | grep -q $PACKAGE; then
32 echo -n "Adding $PACKAGE to /etc/slim.conf..."
33 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $root/etc/slim.conf
34 status
35 fi
36 for i in $(ls -d "$1"/home/* 2> /dev/null);
37 do [ -d "$i" ] && \
38 sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"compiz"|' -i \
39 "$i/.config/slitaz/applications.conf" \
40 "$1/etc/slitaz/applications.conf"
41 done
42 }
44 post_remove()
45 {
46 # Remove WM from SLIM available sessions.
47 if grep -q $PACKAGE $root/etc/slim.conf; then
48 sed -i s/,$PACKAGE// $root/etc/slim.conf
49 fi
50 for i in $(ls -d "$1"/home/* 2> /dev/null);
51 do [ -d "$i" ] && \
52 sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"lxde-session"|' -i \
53 "$i/.config/slitaz/applications.conf" \
54 "$1/etc/slitaz/applications.conf"
55 done
56 }