wok view compiz/receipt @ rev 19986

Add hgfse
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jul 01 16:57:19 2017 +0200 (2017-07-01)
parents 4b74c54bbbf2
children 970c5ec9a60a
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 cairo-gl"
14 SUGGESTED="compiz-ccsm compiz-plugins-extra emerald-themes"
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 mkdir -p $fs/usr/bin
20 cp -r $stuff/xsessions $fs/usr/share
21 install -m 0777 $stuff/compiz-session $fs/usr/bin
22 install -m 0777 $stuff/compiz-startwm $fs/usr/bin
23 chown -R 0.0 $fs
24 }
26 post_install()
27 {
28 chroot "$1/" tazx auto
30 res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
31 # Adding WM to SLIM available sessions.
32 if ! echo "$res" | grep -q $PACKAGE; then
33 echo -n "Adding $PACKAGE to /etc/slim.conf..."
34 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $root/etc/slim.conf
35 status
36 fi
37 for i in $(ls -d "$1"/home/* 2> /dev/null);
38 do [ -d "$i" ] && \
39 sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"compiz"|' -i \
40 "$i/.config/slitaz/applications.conf" \
41 "$1/etc/slitaz/applications.conf"
42 done
43 }
45 post_remove()
46 {
47 # Remove WM from SLIM available sessions.
48 if grep -q $PACKAGE $root/etc/slim.conf; then
49 sed -i s/,$PACKAGE// $root/etc/slim.conf
50 fi
51 for i in $(ls -d "$1"/home/* 2> /dev/null);
52 do [ -d "$i" ] && \
53 sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"lxde-session"|' -i \
54 "$i/.config/slitaz/applications.conf" \
55 "$1/etc/slitaz/applications.conf"
56 done
57 }