wok-current view compiz/receipt @ rev 19391
memtest: tiny shrink
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 27 12:07:37 2016 +0200 (2016-08-27) |
parents | 8e1f5fe117e6 |
children | 7aee71cc8a7e |
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 chroot "$1/" tazx auto
31 res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
32 # Adding WM to SLIM available sessions.
33 if ! echo "$res" | grep -q $PACKAGE; then
34 echo -n "Adding $PACKAGE to /etc/slim.conf..."
35 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $root/etc/slim.conf
36 status
37 fi
38 for i in $(ls -d "$1"/home/* 2> /dev/null);
39 do [ -d "$i" ] && \
40 sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"compiz"|' -i \
41 "$i/.config/slitaz/applications.conf" \
42 "$1/etc/slitaz/applications.conf"
43 done
44 }
46 post_remove()
47 {
48 # Remove WM from SLIM available sessions.
49 if grep -q $PACKAGE $root/etc/slim.conf; then
50 sed -i s/,$PACKAGE// $root/etc/slim.conf
51 fi
52 for i in $(ls -d "$1"/home/* 2> /dev/null);
53 do [ -d "$i" ] && \
54 sed '/WINDOW_MANAGER=/s|"\([^"]*\)"|"lxde-session"|' -i \
55 "$i/.config/slitaz/applications.conf" \
56 "$1/etc/slitaz/applications.conf"
57 done
58 }