wok-next view compiz/receipt @ rev 16146
Move kompozer to undigest (not compiling for a long time and not realy maintained)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Mar 26 21:49:28 2014 +0100 (2014-03-26) |
parents | eb8067417980 |
children | 5d53e8ccbc8d |
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 $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 }
40 post_remove()
41 {
42 # Remove WM from SLIM available sessions.
43 if grep -q $PACKAGE $root/etc/slim.conf; then
44 sed -i s/,$PACKAGE// $root/etc/slim.conf
45 fi
46 }