wok-next view compiz/receipt @ rev 14730

Up xorg-xf86-video-ati (7.1.0), xorg-xf86-video-fbdev (0.4.3), xorg-xf86-video-geode (2.11.14), xorg-xf86-video-i740 (1.3.4), xorg-xf86-video-neomagic (1.2.7), xorg-xf86-video-nv (2.1.20), xorg-xf86-video-s3 (0.6.5), xorg-xf86-video-trident (1.3.6), xorg-xf86-video-vesa (2.3.2), xorg-xf86-video-vmware (13.0.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Jun 13 10:45:31 2013 +0200 (2013-06-13)
parents
children eb8067417980
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 WEB_SITE="http://www.compiz.org/"
9 SUGGESTED="compiz-ccsm compiz-compizconfig-python"
11 DEPENDS="emerald compiz-core compiz-plugins-main compiz-libcompizconfig \
12 slitaz-configs"
13 BUILD_DEPENDS=""
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 mkdir -p \
19 $fs/usr/bin \
20 $fs/usr/share/doc/slitaz
21 echo "See: http://doc.slitaz.org/" > \
22 $fs/usr/share/doc/slitaz/compiz.txt
23 cp -r $stuff/xsessions $fs/usr/share
24 install -m 0777 $stuff/compiz-session $fs/usr/bin
25 chown -R 0.0 $fs
26 }
28 post_install()
29 {
30 res=$(cat $1/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/" $1/etc/slim.conf
35 status
36 fi
37 }
39 post_remove()
40 {
41 # Remove WM from SLIM available sessions.
42 if grep -q $PACKAGE $1/etc/slim.conf; then
43 sed -i s/,$PACKAGE// $1/etc/slim.conf
44 fi
45 }