wok-6.x view compiz/receipt @ rev 15763
Up tazinst-gui (3.92)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 05 22:37:47 2014 +0100 (2014-01-05) |
parents | 569abf072b71 |
children | 41794be0da15 |
line source
1 # SliTaz package receipt.
3 PACKAGE="compiz"
4 VERSION="0.9.4"
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 SUGGESTED="compiz-ccsm compiz-compizconfig-python"
12 DEPENDS="emerald compiz-core compiz-plugins-main compiz-libcompizconfig \
13 slitaz-configs"
14 BUILD_DEPENDS=""
16 # Rules to gen a SliTaz package suitable for Tazpkg.
17 genpkg_rules()
18 {
19 mkdir -p \
20 $fs/usr/bin \
21 $fs/usr/share/doc/slitaz
22 echo "See: http://doc.slitaz.org/" > \
23 $fs/usr/share/doc/slitaz/compiz.txt
24 cp -r $stuff/xsessions $fs/usr/share
25 install -m 0777 $stuff/compiz-session $fs/usr/bin
26 chown -R 0.0 $fs
27 }
29 post_install()
30 {
31 res=$(cat $1/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/" $1/etc/slim.conf
36 status
37 fi
38 }
40 post_remove()
41 {
42 # Remove WM from SLIM available sessions.
43 if grep -q $PACKAGE $1/etc/slim.conf; then
44 sed -i s/,$PACKAGE// $1/etc/slim.conf
45 fi
46 }