wok-current view compiz/receipt @ rev 18410
open-vm-tools: more attempts to get linux64 build to work on cooker
author | Nathan Neulinger <nneul@neulinger.org> |
---|---|
date | Sat Sep 19 15:44:21 2015 +0000 (2015-09-19) |
parents | 41794be0da15 |
children | 8e1f5fe117e6 |
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"
11 TAGS="window-manager"
13 DEPENDS="emerald compiz-core compiz-plugins-main compiz-libcompizconfig \
14 slitaz-configs"
15 BUILD_DEPENDS=""
17 # Rules to gen a SliTaz package suitable for Tazpkg.
18 genpkg_rules()
19 {
20 mkdir -p \
21 $fs/usr/bin \
22 $fs/usr/share/doc/slitaz
23 echo "See: http://doc.slitaz.org/" > \
24 $fs/usr/share/doc/slitaz/compiz.txt
25 cp -r $stuff/xsessions $fs/usr/share
26 install -m 0777 $stuff/compiz-session $fs/usr/bin
27 chown -R 0.0 $fs
28 }
30 post_install()
31 {
32 res=$(cat $root/etc/slim.conf | grep ^session | sed s/"sessions. *"//)
33 # Adding WM to SLIM available sessions.
34 if ! echo "$res" | grep -q $PACKAGE; then
35 echo -n "Adding $PACKAGE to /etc/slim.conf..."
36 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $root/etc/slim.conf
37 status
38 fi
39 }
41 post_remove()
42 {
43 # Remove WM from SLIM available sessions.
44 if grep -q $PACKAGE $root/etc/slim.conf; then
45 sed -i s/,$PACKAGE// $root/etc/slim.conf
46 fi
47 }