wok view compiz/receipt @ rev 18630

Add mediainfo-gui
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Nov 25 07:29:51 2015 +0200 (2015-11-25)
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 }