wok-current annotate compiz/receipt @ rev 14868
Up: perl-gkt2 (1.247)
author | Claudinei Pereira <claudinei@slitaz.org> |
---|---|
date | Mon Jul 22 19:47:08 2013 -0300 (2013-07-22) |
parents | |
children | eb8067417980 |
rev | line source |
---|---|
pankso@12405 | 1 # SliTaz package receipt. |
pankso@12405 | 2 |
pankso@12405 | 3 PACKAGE="compiz" |
pankso@12405 | 4 VERSION="0.9.4" |
pankso@12405 | 5 CATEGORY="meta" |
pankso@12405 | 6 SHORT_DESC="Compiz 3D effect support on SliTaz." |
pankso@12405 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@12405 | 8 WEB_SITE="http://www.compiz.org/" |
pankso@12405 | 9 SUGGESTED="compiz-ccsm compiz-compizconfig-python" |
pankso@12405 | 10 |
pankso@12405 | 11 DEPENDS="emerald compiz-core compiz-plugins-main compiz-libcompizconfig \ |
pankso@12405 | 12 slitaz-configs" |
pankso@12405 | 13 BUILD_DEPENDS="" |
pankso@12405 | 14 |
pankso@12405 | 15 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@12405 | 16 genpkg_rules() |
pankso@12405 | 17 { |
pankso@12405 | 18 mkdir -p \ |
pankso@12405 | 19 $fs/usr/bin \ |
pankso@12405 | 20 $fs/usr/share/doc/slitaz |
pankso@12405 | 21 echo "See: http://doc.slitaz.org/" > \ |
pankso@12405 | 22 $fs/usr/share/doc/slitaz/compiz.txt |
pankso@12405 | 23 cp -r $stuff/xsessions $fs/usr/share |
pankso@12405 | 24 install -m 0777 $stuff/compiz-session $fs/usr/bin |
pankso@12405 | 25 chown -R 0.0 $fs |
pankso@12405 | 26 } |
pankso@12405 | 27 |
pankso@12405 | 28 post_install() |
pankso@12405 | 29 { |
pankso@12405 | 30 res=$(cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//) |
pankso@12405 | 31 # Adding WM to SLIM available sessions. |
pankso@12405 | 32 if ! echo "$res" | grep -q $PACKAGE; then |
pankso@12405 | 33 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
pankso@12405 | 34 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" $1/etc/slim.conf |
pankso@12405 | 35 status |
pankso@12405 | 36 fi |
pankso@12405 | 37 } |
pankso@12405 | 38 |
pankso@12405 | 39 post_remove() |
pankso@12405 | 40 { |
pankso@12405 | 41 # Remove WM from SLIM available sessions. |
pankso@12405 | 42 if grep -q $PACKAGE $1/etc/slim.conf; then |
pankso@12405 | 43 sed -i s/,$PACKAGE// $1/etc/slim.conf |
pankso@12405 | 44 fi |
pankso@12405 | 45 } |