wok view compiz/receipt @ rev 13051

php, php-gd: Add freetype support
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Mon Jun 18 22:02:23 2012 +0200 (2012-06-18)
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 }